diff options
Diffstat (limited to 'engines/sci/graphics/animate.cpp')
-rw-r--r-- | engines/sci/graphics/animate.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/sci/graphics/animate.cpp b/engines/sci/graphics/animate.cpp index 1a31dccefb..80e09800a3 100644 --- a/engines/sci/graphics/animate.cpp +++ b/engines/sci/graphics/animate.cpp @@ -217,7 +217,11 @@ void SciGuiAnimate::fill(byte &old_picNotValid) { } // Create rect according to coordinates and given cel - view->getCelRect(listEntry->loopNo, listEntry->celNo, listEntry->x, listEntry->y, listEntry->z, &listEntry->celRect); + if (listEntry->scaleSignal & kScaleSignalDoScaling) { + view->getCelScaledRect(listEntry->loopNo, listEntry->celNo, listEntry->x, listEntry->y, listEntry->z, listEntry->scaleX, listEntry->scaleY, &listEntry->celRect); + } else { + view->getCelRect(listEntry->loopNo, listEntry->celNo, listEntry->x, listEntry->y, listEntry->z, &listEntry->celRect); + } PUT_SEL32V(_s->_segMan, curObject, nsLeft, listEntry->celRect.left); PUT_SEL32V(_s->_segMan, curObject, nsTop, listEntry->celRect.top); PUT_SEL32V(_s->_segMan, curObject, nsRight, listEntry->celRect.right); |