From b132c65ff3b6e374c94bb57187284740d75a5fb8 Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Tue, 27 Oct 2009 02:23:45 +0000 Subject: Make Jones in the Fast Lane use up the whole screen as did the original game. svn-id: r45431 --- engines/sci/gfx/operations.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'engines/sci/gfx/operations.cpp') 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)); -- cgit v1.2.3