aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorFilippos Karapetis2009-05-26 19:16:24 +0000
committerFilippos Karapetis2009-05-26 19:16:24 +0000
commitc6ba88c00a6a0a75a6cc7f24938be3cc62508d94 (patch)
tree672ba0a50325373f922fe2951afdf92505a9f2ef /engines
parentd111e33df461429d85f43aa45f32a9ec5100b641 (diff)
downloadscummvm-rg350-c6ba88c00a6a0a75a6cc7f24938be3cc62508d94.tar.gz
scummvm-rg350-c6ba88c00a6a0a75a6cc7f24938be3cc62508d94.tar.bz2
scummvm-rg350-c6ba88c00a6a0a75a6cc7f24938be3cc62508d94.zip
Fixed regression in Longbow
svn-id: r40924
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/engine/kgraphics.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sci/engine/kgraphics.cpp b/engines/sci/engine/kgraphics.cpp
index 03ccd82f87..400a8f78ec 100644
--- a/engines/sci/engine/kgraphics.cpp
+++ b/engines/sci/engine/kgraphics.cpp
@@ -2369,15 +2369,15 @@ reg_t kSetPort(EngineState *s, int funct_nr, int argc, reg_t *argv) {
return s->r_acc;
}
+ // Notify the graphics resource manager that the pic port bounds changed
+ s->gfx_state->gfxResMan->changePortBounds(UKPV(5), UKPV(4), UKPV(3) + UKPV(5), UKPV(2) + UKPV(4));
+
// LSL6 calls kSetPort to extend the screen to draw the GUI. If we free all resources
// here, the background picture is freed too, and this makes everything a big mess.
// FIXME/TODO: This code really needs to be rewritten to conform to the original behavior
if (s->_gameName != "LSL6") {
s->gfx_state->pic_port_bounds = gfx_rect(UKPV(5), UKPV(4), UKPV(3), UKPV(2));
- // Notify the graphics resource manager that the pic port bounds changed
- s->gfx_state->gfxResMan->changePortBounds(UKPV(5), UKPV(4), UKPV(3) - UKPV(5), UKPV(2) - UKPV(4));
-
// FIXME: Should really only invalidate all loaded pic resources here;
// this is overkill
s->gfx_state->gfxResMan->freeAllResources();