aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics
diff options
context:
space:
mode:
authorMartin Kiewitz2010-07-27 09:17:57 +0000
committerMartin Kiewitz2010-07-27 09:17:57 +0000
commit4fb7b0657048cc3a368258cd4ca2f922fd888eeb (patch)
tree249ff1346fe86e8d89aec5198cbb4c85ed01c815 /engines/sci/graphics
parent3da0c0794f151084f7552708c35beb92bd2f3725 (diff)
downloadscummvm-rg350-4fb7b0657048cc3a368258cd4ca2f922fd888eeb.tar.gz
scummvm-rg350-4fb7b0657048cc3a368258cd4ca2f922fd888eeb.tar.bz2
scummvm-rg350-4fb7b0657048cc3a368258cd4ca2f922fd888eeb.zip
SCI: translating nsRect back to actual plane coordinate
on scrollable planes svn-id: r51350
Diffstat (limited to 'engines/sci/graphics')
-rw-r--r--engines/sci/graphics/frameout.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/sci/graphics/frameout.cpp b/engines/sci/graphics/frameout.cpp
index c498262038..cea398250b 100644
--- a/engines/sci/graphics/frameout.cpp
+++ b/engines/sci/graphics/frameout.cpp
@@ -420,6 +420,8 @@ void GfxFrameout::kernelFrameout() {
view->getCelScaledRect(itemEntry->loopNo, itemEntry->celNo, itemEntry->x, itemEntry->y, itemEntry->z, itemEntry->scaleX, itemEntry->scaleY, itemEntry->celRect);
Common::Rect nsRect = itemEntry->celRect;
+ // Translate back to actual coordinate within scrollable plane
+ nsRect.translate(planeOffsetX, 0);
switch (getSciVersion()) {
case SCI_VERSION_2:
if (view->isSci2Hires()) {