diff options
Diffstat (limited to 'engines/sword25/gfx/animation.cpp')
-rw-r--r-- | engines/sword25/gfx/animation.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/engines/sword25/gfx/animation.cpp b/engines/sword25/gfx/animation.cpp index 22a4dfb71b..1660c393c0 100644 --- a/engines/sword25/gfx/animation.cpp +++ b/engines/sword25/gfx/animation.cpp @@ -170,7 +170,7 @@ void Animation::setFrame(uint nr) { forceRefresh(); } -bool Animation::doRender() { +bool Animation::doRender(RectangleList *updateRects) { AnimationDescription *animationDescriptionPtr = getAnimationDescription(); assert(animationDescriptionPtr); assert(_currentFrame < animationDescriptionPtr->getFrameCount()); @@ -191,12 +191,14 @@ bool Animation::doRender() { result = pBitmapResource->blit(_absoluteX, _absoluteY, (animationDescriptionPtr->getFrame(_currentFrame).flipV ? BitmapResource::FLIP_V : 0) | (animationDescriptionPtr->getFrame(_currentFrame).flipH ? BitmapResource::FLIP_H : 0), - 0, _modulationColor, _width, _height); + 0, _modulationColor, _width, _height, + updateRects); } else { result = pBitmapResource->blit(_absoluteX, _absoluteY, (animationDescriptionPtr->getFrame(_currentFrame).flipV ? BitmapResource::FLIP_V : 0) | (animationDescriptionPtr->getFrame(_currentFrame).flipH ? BitmapResource::FLIP_H : 0), - 0, _modulationColor, -1, -1); + 0, _modulationColor, -1, -1, + updateRects); } // Resource freigeben |