aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/gfx/operations.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2009-10-06 12:26:13 +0000
committerFilippos Karapetis2009-10-06 12:26:13 +0000
commitdf29b0067e100e97f29d286178685257816f0972 (patch)
treefcd50174daca7557431c8cb01c0233950bef4f1d /engines/sci/gfx/operations.cpp
parent8e108cc0a0c76814ac533c51b361737ba5e8c867 (diff)
downloadscummvm-rg350-df29b0067e100e97f29d286178685257816f0972.tar.gz
scummvm-rg350-df29b0067e100e97f29d286178685257816f0972.tar.bz2
scummvm-rg350-df29b0067e100e97f29d286178685257816f0972.zip
- Unified the screen buffers that are used by the current and the new GUI
- Replaced the FreeSCI line drawing code (which is actually Bresenham) with Graphics::drawLine(), after discussing with waltervn. This shouldn't bring any regressions, as we're no longer offering the option to scale the background at a vector level. After playing through some of the games, I haven't noticed any regressions - Some cleanup svn-id: r44692
Diffstat (limited to 'engines/sci/gfx/operations.cpp')
-rw-r--r--engines/sci/gfx/operations.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/gfx/operations.cpp b/engines/sci/gfx/operations.cpp
index 65fdfc1de7..8e6db7895a 100644
--- a/engines/sci/gfx/operations.cpp
+++ b/engines/sci/gfx/operations.cpp
@@ -386,7 +386,7 @@ static void init_aux_pixmap(gfx_pixmap_t **pixmap) {
void gfxop_init(GfxState *state,
gfx_options_t *options, ResourceManager *resMan,
- int xfact, int yfact) {
+ SciGuiScreen *screen, int scaleFactor) {
state->options = options;
state->visible_map = GFX_MASK_VISUAL;
state->fullscreen_override = NULL; // No magical override
@@ -399,7 +399,7 @@ void gfxop_init(GfxState *state,
state->pic_port_bounds = gfx_rect(0, 10, 320, 190);
state->_dirtyRects.clear();
- state->driver = new GfxDriver(xfact, yfact);
+ state->driver = new GfxDriver(screen, scaleFactor);
state->gfxResMan = new GfxResManager(state->options, state->driver, resMan);