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:
Tobia Tesan 2013-08-15 14:08:00 +02:00 committed by Willem Jan Palenstijn
parent 0aa669cc47
commit 21314e2389

View File

@ -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.
rect.left = (int16)(left + _borderLeft);
rect.top = (int16)(top + _borderTop);
rect.right = (int16)((right - left) * _ratioX);
rect.bottom = (int16)((bottom - top) * _ratioY);
rect.setWidth((int16)((right - left) * _ratioX));
rect.setHeight((int16)((bottom - top) * _ratioY));
_renderRect = rect;
return STATUS_OK;