diff options
author | Marisa-Chan | 2014-10-10 16:49:38 +0700 |
---|---|---|
committer | Marisa-Chan | 2014-10-10 16:49:38 +0700 |
commit | ac74070af1d09cb9eb319b50716d2c3ee272c2a9 (patch) | |
tree | 5e00856521089e4eb784172e488051e04abb4bed /engines/zvision/scripting/controls/lever_control.cpp | |
parent | 7c9d8f22de461528ac5e3fbe9c1c69dcdaa1a908 (diff) | |
download | scummvm-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/zvision/scripting/controls/lever_control.cpp')
-rw-r--r-- | engines/zvision/scripting/controls/lever_control.cpp | 4 |
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 |