mirror of
https://github.com/libretro/scummvm.git
synced 2025-04-02 06:41:51 +00:00
MOHAWK: Riven: Ensure the entire view is drawn when pan transitions complete
Fixes #10063.
This commit is contained in:
parent
51a342b9ec
commit
c6e6d0b3df
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user