aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/gfx/operations.cpp
diff options
context:
space:
mode:
authorMatthew Hoops2009-10-27 02:23:45 +0000
committerMatthew Hoops2009-10-27 02:23:45 +0000
commitb132c65ff3b6e374c94bb57187284740d75a5fb8 (patch)
tree24d347ae0636bdfe8b9611b0edfce70a7bd2f0a6 /engines/sci/gfx/operations.cpp
parent4b681f7ec7e42ea17ed97c80372cf564a8648682 (diff)
downloadscummvm-rg350-b132c65ff3b6e374c94bb57187284740d75a5fb8.tar.gz
scummvm-rg350-b132c65ff3b6e374c94bb57187284740d75a5fb8.tar.bz2
scummvm-rg350-b132c65ff3b6e374c94bb57187284740d75a5fb8.zip
Make Jones in the Fast Lane use up the whole screen as did the original game.
svn-id: r45431
Diffstat (limited to 'engines/sci/gfx/operations.cpp')
-rw-r--r--engines/sci/gfx/operations.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/engines/sci/gfx/operations.cpp b/engines/sci/gfx/operations.cpp
index d6fd5dc6b4..a89968598b 100644
--- a/engines/sci/gfx/operations.cpp
+++ b/engines/sci/gfx/operations.cpp
@@ -345,12 +345,17 @@ void gfxop_init(GfxState *state, ResourceManager *resMan,
state->pic = state->pic_unscaled = NULL;
state->pic_nr = -1; // Set background pic number to an invalid value
state->tag_mode = 0;
- state->pic_port_bounds = gfx_rect(0, 10, 320, 190);
state->_dirtyRects.clear();
+
+ // Jones in the Fast Lane uses up the whole window
+ if (!scumm_stricmp(((SciEngine *)g_engine)->getGameID(), "jones"))
+ state->pic_port_bounds = gfx_rect(0, 0, 320, 200);
+ else
+ state->pic_port_bounds = gfx_rect(0, 10, 320, 190);
state->driver = new GfxDriver(screen, scaleFactor);
- state->gfxResMan = new GfxResManager(state->driver, resMan, screen, palette);
+ state->gfxResMan = new GfxResManager(state->driver, resMan, screen, palette, toCommonRect(state->pic_port_bounds));
gfxop_set_clip_zone(state, gfx_rect(0, 0, 320, 200));