MOHAWK: Riven: Ensure the entire view is drawn when pan transitions complete

Fixes #10063.
This commit is contained in:
Bastien Bouclet 2017-08-05 14:10:47 +02:00
parent 51a342b9ec
commit c6e6d0b3df

View File

@ -198,12 +198,15 @@ public:
return false;
}
Common::Rect oldArea = Common::Rect(
newArea.right != _rect.right ? _rect.left + newArea.width() : _rect.left,
newArea.bottom != _rect.bottom ? _rect.top + newArea.height() : _rect.top,
newArea.left != _rect.left ? _rect.right - newArea.width() : _rect.right,
newArea.top != _rect.top ? _rect.bottom - newArea.height() : _rect.bottom
);
Common::Rect oldArea;
if (newArea != _rect) {
oldArea = Common::Rect(
newArea.right != _rect.right ? _rect.left + newArea.width() : _rect.left,
newArea.bottom != _rect.bottom ? _rect.top + newArea.height() : _rect.top,
newArea.left != _rect.left ? _rect.right - newArea.width() : _rect.right,
newArea.top != _rect.top ? _rect.bottom - newArea.height() : _rect.bottom
);
}
int oldX = newArea.left != _rect.left ? _rect.left + newArea.width() : _rect.left;
int oldY = newArea.top != _rect.top ? _rect.top + newArea.height() : _rect.top;