From b4126beea2a22a3ca57f756cd9b026cb5e555102 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Sat, 23 May 2009 10:50:24 +0000 Subject: The third and fourth parameter in changePortBounds() are x2 and y2, not width and height svn-id: r40805 --- engines/sci/engine/kgraphics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/sci/engine/kgraphics.cpp b/engines/sci/engine/kgraphics.cpp index e956051677..a05dea88cd 100644 --- a/engines/sci/engine/kgraphics.cpp +++ b/engines/sci/engine/kgraphics.cpp @@ -2378,7 +2378,7 @@ reg_t kSetPort(EngineState *s, int funct_nr, int argc, reg_t *argv) { 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(2)); + 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 -- cgit v1.2.3