aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2015-02-03 04:15:11 +0200
committerFilippos Karapetis2015-02-03 04:16:02 +0200
commit1adcb23d71a1f1ef6c4bc3b98fb474959fd14462 (patch)
treeed4bb85d6007cf278a88fe966868c5f3ccd3a4d5
parentbc2c1c6a3c11c10883e21dde1b68aafc9bf42620 (diff)
downloadscummvm-rg350-1adcb23d71a1f1ef6c4bc3b98fb474959fd14462.tar.gz
scummvm-rg350-1adcb23d71a1f1ef6c4bc3b98fb474959fd14462.tar.bz2
scummvm-rg350-1adcb23d71a1f1ef6c4bc3b98fb474959fd14462.zip
ZVISION: Fix bug #6784 (wrong scaling in the fist control)
-rw-r--r--engines/zvision/scripting/controls/fist_control.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/zvision/scripting/controls/fist_control.cpp b/engines/zvision/scripting/controls/fist_control.cpp
index 4a8e8b1bbd..f79c82dc79 100644
--- a/engines/zvision/scripting/controls/fist_control.cpp
+++ b/engines/zvision/scripting/controls/fist_control.cpp
@@ -105,7 +105,12 @@ bool FistControl::process(uint32 deltaTimeInMillis) {
if (_animation->needsUpdate()) {
const Graphics::Surface *frameData = _animation->decodeNextFrame();
if (frameData)
- _engine->getRenderManager()->blitSurfaceToBkgScaled(*frameData, _anmRect);
+ // WORKAROUND: Ignore the target frame dimensions for the finger animations.
+ // The target dimensions specify an area smaller than expected, thus if we
+ // scale the finger videos to fit these dimensions, they are not aligned
+ // correctly. Not scaling these videos yields a result identical to the
+ // original. Fixes bug #6784.
+ _engine->getRenderManager()->blitSurfaceToBkg(*frameData, _anmRect.left, _anmRect.top);
}
}