Skip to content

Commit

Permalink
TRECISION: Fix action animation rects - bugs #12629, #12639, #12640
Browse files Browse the repository at this point in the history
  • Loading branch information
bluegr committed Jun 16, 2021
1 parent e1868bf commit df607c7
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions engines/trecision/video.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit df607c7

Please sign in to comment.