SCI: translating nsRect back to actual plane coordinate

on scrollable planes

svn-id: r51350
This commit is contained in:
Martin Kiewitz 2010-07-27 09:17:57 +00:00
parent 3da0c0794f
commit 4fb7b06570

View File

@ -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()) {