aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/gfx/operations.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2009-10-25 20:53:07 +0000
committerFilippos Karapetis2009-10-25 20:53:07 +0000
commit1a4b61739832a1f1d597b9c56e67dd8b80b32f76 (patch)
tree3c80fcc922210f4e89b134443b45bba8365febbe /engines/sci/gfx/operations.cpp
parent0315264328af6b34a4c9e1028bba07a636da5df8 (diff)
downloadscummvm-rg350-1a4b61739832a1f1d597b9c56e67dd8b80b32f76.tar.gz
scummvm-rg350-1a4b61739832a1f1d597b9c56e67dd8b80b32f76.tar.bz2
scummvm-rg350-1a4b61739832a1f1d597b9c56e67dd8b80b32f76.zip
- Removed graphics options code from the old GUI. Almost all of them are not supposed to be modified by the user (e.g. the way lines and brushes are drawn), and we can implement any of them again if needed in the new GUI (but they shouldn't really be needed).
- Added a config option to disable dithering in the new GUI if requested, called "undither", which is set to true by default and can be changed to false if needed per game - The per-resource palette code has been removed for now, to be replaced by regular hashmaps (once the FreeSCI scifx reading code has been converted) svn-id: r45378
Diffstat (limited to 'engines/sci/gfx/operations.cpp')
-rw-r--r--engines/sci/gfx/operations.cpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/engines/sci/gfx/operations.cpp b/engines/sci/gfx/operations.cpp
index 0a51004f1d..9edba13ae8 100644
--- a/engines/sci/gfx/operations.cpp
+++ b/engines/sci/gfx/operations.cpp
@@ -354,12 +354,9 @@ static void init_aux_pixmap(gfx_pixmap_t **pixmap) {
(*pixmap)->palette = new Palette(default_colors, DEFAULT_COLORS_NR);
}
-void gfxop_init(GfxState *state,
- gfx_options_t *options, ResourceManager *resMan,
+void gfxop_init(GfxState *state, ResourceManager *resMan,
SciGuiScreen *screen, SciGuiPalette *palette, int scaleFactor) {
- state->options = options;
state->visible_map = GFX_MASK_VISUAL;
- state->options = options;
state->disable_dirty = 0;
state->_events.clear();
state->pic = state->pic_unscaled = NULL;
@@ -370,7 +367,7 @@ void gfxop_init(GfxState *state,
state->driver = new GfxDriver(screen, scaleFactor);
- state->gfxResMan = new GfxResManager(state->options, state->driver, resMan, screen, palette);
+ state->gfxResMan = new GfxResManager(state->driver, resMan, screen, palette);
gfxop_set_clip_zone(state, gfx_rect(0, 0, 320, 200));
@@ -1382,10 +1379,6 @@ static void _gfxop_set_pic(GfxState *state) {
_gfxop_install_pixmap(state->driver, state->pic->visual_map);
}
-#ifdef CUSTOM_GRAPHICS_OPTIONS
- if (state->options->pic0_unscaled)
-#endif
- state->pic->priority_map = gfx_pixmap_scale_index_data(state->pic->priority_map, state->driver->getMode());
state->driver->setStaticBuffer(state->pic->visual_map, state->pic->priority_map);
}