aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authormd52011-03-25 07:41:55 +0200
committermd52011-03-25 07:41:55 +0200
commitc2274e90653c381d15c912b05472a78c048ac33e (patch)
tree0f99743056aaad582d567f99be2c480227538eb4 /engines
parentc144bbf9570e6d4498072374ee24edb33b6c9126 (diff)
downloadscummvm-rg350-c2274e90653c381d15c912b05472a78c048ac33e.tar.gz
scummvm-rg350-c2274e90653c381d15c912b05472a78c048ac33e.tar.bz2
scummvm-rg350-c2274e90653c381d15c912b05472a78c048ac33e.zip
SCI: Make sure that planeOffsetX is always correctly initialized
Fixes several issues with the menu in KQ7. Thanks to vakons for his patch. Fixes bug #3231867 - "KQ7 scrolling bug"
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/graphics/frameout.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/sci/graphics/frameout.cpp b/engines/sci/graphics/frameout.cpp
index fbfd140e6b..e68f964dab 100644
--- a/engines/sci/graphics/frameout.cpp
+++ b/engines/sci/graphics/frameout.cpp
@@ -123,7 +123,10 @@ void GfxFrameout::kernelUpdatePlane(reg_t object) {
if (it->planeRect.left < 0) {
it->planeOffsetX = -it->planeRect.left;
it->planeRect.left = 0;
+ } else {
+ it->planeOffsetX = 0;
}
+
if (it->planeRect.top < 0)
it->planeRect.top = 0;
// We get bad plane-bottom in sq6