From c2274e90653c381d15c912b05472a78c048ac33e Mon Sep 17 00:00:00 2001 From: md5 Date: Fri, 25 Mar 2011 07:41:55 +0200 Subject: 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" --- engines/sci/graphics/frameout.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'engines/sci/graphics') 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 -- cgit v1.2.3