MOHAWK: Fix drawing the last step of an animated update

svn-id: r54635
This commit is contained in:
Bastien Bouclet 2010-11-29 21:00:37 +00:00
parent 7ea90ddf19
commit 836aab9968

View File

@ -364,7 +364,7 @@ void MystGraphics::animatedUpdate(uint16 type, Common::Rect rect, uint16 steps,
_dirtyRects.push_back(area);
updateScreen();
}
if (area.top < rect.bottom) {
if (area.bottom < rect.bottom) {
area.top = area.bottom;
area.bottom = rect.bottom;
@ -387,7 +387,7 @@ void MystGraphics::animatedUpdate(uint16 type, Common::Rect rect, uint16 steps,
_dirtyRects.push_back(area);
updateScreen();
}
if (area.bottom > rect.top) {
if (area.top > rect.top) {
area.bottom = area.top;
area.top = rect.top;