Skip to content

Commit

Permalink
WINTERMUTE: Fix computation of _renderRect.
Browse files Browse the repository at this point in the history
This reverts the changes in 4cf1d67.
Fixes the "notebook bug" - i.e. the notebook being only partially
drawn - in Dirty Split.
  • Loading branch information
tobiatesan authored and wjp committed Aug 15, 2013
1 parent 0aa669c commit 21314e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engines/wintermute/base/gfx/osystem/base_render_osystem.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 21314e2

Please sign in to comment.