diff options
author | Sven Hesse | 2007-04-12 09:00:16 +0000 |
---|---|---|
committer | Sven Hesse | 2007-04-12 09:00:16 +0000 |
commit | 33ac8d550a97135c1fa6a87e1cc3dec49843b703 (patch) | |
tree | 566d6f79644321f6d1506add5e6b00b51df6bd36 | |
parent | 88b8f944355e8b97ffb7fc7f9ef8ef7ce0e3c313 (diff) | |
download | scummvm-rg350-33ac8d550a97135c1fa6a87e1cc3dec49843b703.tar.gz scummvm-rg350-33ac8d550a97135c1fa6a87e1cc3dec49843b703.tar.bz2 scummvm-rg350-33ac8d550a97135c1fa6a87e1cc3dec49843b703.zip |
Fixed an IMD glitch where frames weren't drawn at all (noticable in the CD version's cutscenes after the "IDOL" screen, for example)
svn-id: r26454
-rw-r--r-- | engines/gob/imd.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/engines/gob/imd.cpp b/engines/gob/imd.cpp index 77a9a8dedb..a3133667cc 100644 --- a/engines/gob/imd.cpp +++ b/engines/gob/imd.cpp @@ -393,13 +393,13 @@ void ImdPlayer::setXY(ImdPlayer::Imd *imdPtr, int16 x, int16 y) { if (imdPtr->frameCoords) { for (i = 0; i < imdPtr->framesCount; i++) { if (imdPtr->frameCoords[i].left != -1) { - imdPtr->frameCoords[i].left -= + imdPtr->frameCoords[i].left = imdPtr->frameCoords[i].left - imdPtr->x + x; - imdPtr->frameCoords[i].top -= + imdPtr->frameCoords[i].top = imdPtr->frameCoords[i].top - imdPtr->y + y; - imdPtr->frameCoords[i].right -= + imdPtr->frameCoords[i].right = imdPtr->frameCoords[i].right - imdPtr->x + x; - imdPtr->frameCoords[i].bottom -= + imdPtr->frameCoords[i].bottom = imdPtr->frameCoords[i].bottom - imdPtr->y + y; } } @@ -421,7 +421,8 @@ void ImdPlayer::drawFrame(Imd *imdPtr, int16 frame, int16 x, int16 y, _vm->_video->drawSprite(imdPtr->surfDesc, dest, imdPtr->frameCoords[frame].left, imdPtr->frameCoords[frame].top, imdPtr->frameCoords[frame].right, imdPtr->frameCoords[frame].bottom, - imdPtr->frameCoords[frame].left, imdPtr->frameCoords[frame].top, 1); + imdPtr->frameCoords[frame].left + x, + imdPtr->frameCoords[frame].top + y, 1); else if (imdPtr->stdX != -1) _vm->_video->drawSprite(imdPtr->surfDesc, dest, imdPtr->stdX, imdPtr->stdY, imdPtr->stdX + imdPtr->stdWidth - 1, |