aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMarisa-Chan2014-10-10 16:49:38 +0700
committerMarisa-Chan2014-10-10 16:49:38 +0700
commitac74070af1d09cb9eb319b50716d2c3ee272c2a9 (patch)
tree5e00856521089e4eb784172e488051e04abb4bed /engines
parent7c9d8f22de461528ac5e3fbe9c1c69dcdaa1a908 (diff)
downloadscummvm-rg350-ac74070af1d09cb9eb319b50716d2c3ee272c2a9.tar.gz
scummvm-rg350-ac74070af1d09cb9eb319b50716d2c3ee272c2a9.tar.bz2
scummvm-rg350-ac74070af1d09cb9eb319b50716d2c3ee272c2a9.zip
ZVISION: Lever blitter must scale image to rect
Diffstat (limited to 'engines')
-rw-r--r--engines/zvision/scripting/controls/lever_control.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/engines/zvision/scripting/controls/lever_control.cpp b/engines/zvision/scripting/controls/lever_control.cpp
index 8072079435..84cd6fa598 100644
--- a/engines/zvision/scripting/controls/lever_control.cpp
+++ b/engines/zvision/scripting/controls/lever_control.cpp
@@ -370,12 +370,10 @@ void LeverControl::renderFrame(uint frameNumber) {
}
const Graphics::Surface *frameData;
- int x = _animationCoords.left;
- int y = _animationCoords.top;
frameData = _animation->getFrameData(frameNumber);
if (frameData)
- _engine->getRenderManager()->blitSurfaceToBkg(*frameData, x, y);
+ _engine->getRenderManager()->blitSurfaceToBkgScaled(*frameData, _animationCoords);
}
} // End of namespace ZVision