aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobia Tesan2013-08-15 14:08:00 +0200
committerWillem Jan Palenstijn2013-08-16 00:42:58 +0200
commit21314e2389dfe4fa7f7cacc94fa2b99421fe4a66 (patch)
tree82c062026ca78e41d0dd4e3f0e2d276109e0e588
parent0aa669cc479e87cf66c7edcf5aed5299f2895bed (diff)
downloadscummvm-rg350-21314e2389dfe4fa7f7cacc94fa2b99421fe4a66.tar.gz
scummvm-rg350-21314e2389dfe4fa7f7cacc94fa2b99421fe4a66.tar.bz2
scummvm-rg350-21314e2389dfe4fa7f7cacc94fa2b99421fe4a66.zip
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.
-rw-r--r--engines/wintermute/base/gfx/osystem/base_render_osystem.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp b/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp
index 0e7e5aa819..668105457f 100644
--- a/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp
+++ b/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp
@@ -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;