aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2009-05-23 10:50:24 +0000
committerFilippos Karapetis2009-05-23 10:50:24 +0000
commitb4126beea2a22a3ca57f756cd9b026cb5e555102 (patch)
tree1a36ee223e8890211056aa53a3c9335c0ef8b148
parent2590511c7d90ea408df1a5ef92e17154d1b38c31 (diff)
downloadscummvm-rg350-b4126beea2a22a3ca57f756cd9b026cb5e555102.tar.gz
scummvm-rg350-b4126beea2a22a3ca57f756cd9b026cb5e555102.tar.bz2
scummvm-rg350-b4126beea2a22a3ca57f756cd9b026cb5e555102.zip
The third and fourth parameter in changePortBounds() are x2 and y2, not width and height
svn-id: r40805
-rw-r--r--engines/sci/engine/kgraphics.cpp2
1 files changed, 1 insertions, 1 deletions
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