mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-21 19:51:49 +00:00
WINTERMUTE: Fix computation of _renderRect.
This reverts the changes in 4cf1d671. Fixes the "notebook bug" - i.e. the notebook being only partially drawn - in Dirty Split.
This commit is contained in:
parent
0aa669cc47
commit
21314e2389
@ -613,8 +613,8 @@ bool BaseRenderOSystem::setViewport(int left, int top, int right, int bottom) {
|
|||||||
// TODO: Hopefully this is the same logic that ScummVM uses.
|
// TODO: Hopefully this is the same logic that ScummVM uses.
|
||||||
rect.left = (int16)(left + _borderLeft);
|
rect.left = (int16)(left + _borderLeft);
|
||||||
rect.top = (int16)(top + _borderTop);
|
rect.top = (int16)(top + _borderTop);
|
||||||
rect.right = (int16)((right - left) * _ratioX);
|
rect.setWidth((int16)((right - left) * _ratioX));
|
||||||
rect.bottom = (int16)((bottom - top) * _ratioY);
|
rect.setHeight((int16)((bottom - top) * _ratioY));
|
||||||
|
|
||||||
_renderRect = rect;
|
_renderRect = rect;
|
||||||
return STATUS_OK;
|
return STATUS_OK;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user