[Scummvm-git-logs] scummvm master -> df607c7f8db5d9bfb885c7502c0af0a5826b4ce5
bluegr
bluegr at gmail.com
Wed Jun 16 19:54:38 UTC 2021
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
df607c7f8d TRECISION: Fix action animation rects - bugs #12629, #12639, #12640
Commit: df607c7f8db5d9bfb885c7502c0af0a5826b4ce5
https://github.com/scummvm/scummvm/commit/df607c7f8db5d9bfb885c7502c0af0a5826b4ce5
Author: Filippos Karapetis (bluegr at gmail.com)
Date: 2021-06-16T22:54:26+03:00
Commit Message:
TRECISION: Fix action animation rects - bugs #12629, #12639, #12640
Changed paths:
engines/trecision/video.cpp
diff --git a/engines/trecision/video.cpp b/engines/trecision/video.cpp
index 2c3dba7b29..51125a3d82 100644
--- a/engines/trecision/video.cpp
+++ b/engines/trecision/video.cpp
@@ -550,16 +550,7 @@ void AnimManager::drawSmkActionFrame() {
const byte *palette = smkDecoder->getPalette();
if (smkDecoder->getCurFrame() == 0) {
- for (uint16 curY = 0; curY < AREA; curY++) {
- for (uint16 curX = 0; curX < MAXX; curX++) {
- if (frame->getPixel(curX, curY)) {
- _animRect.left = MIN<uint16>(curX, _animRect.left);
- _animRect.top = MIN<uint16>(curY, _animRect.top);
- _animRect.right = MAX<uint16>(curX, _animRect.right);
- _animRect.bottom = MAX<uint16>(curY, _animRect.bottom);
- }
- }
- }
+ _animRect = *smkDecoder->getNextDirtyRect();
}
if (_animRect.width() > 0 && _animRect.height() > 0) {
More information about the Scummvm-git-logs
mailing list