diff options
author | Martin Kiewitz | 2010-07-27 09:17:57 +0000 |
---|---|---|
committer | Martin Kiewitz | 2010-07-27 09:17:57 +0000 |
commit | 4fb7b0657048cc3a368258cd4ca2f922fd888eeb (patch) | |
tree | 249ff1346fe86e8d89aec5198cbb4c85ed01c815 /engines | |
parent | 3da0c0794f151084f7552708c35beb92bd2f3725 (diff) | |
download | scummvm-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')
-rw-r--r-- | engines/sci/graphics/frameout.cpp | 2 |
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()) { |