From b1ec9280fd757184ce8262d3f25b3cf75fed19ec Mon Sep 17 00:00:00 2001 From: Einar Johan Trøan Sømåen Date: Sat, 15 Sep 2012 18:05:18 +0200 Subject: WINTERMUTE: Disable aspect-ratio correction for now. --- engines/wintermute/base/gfx/osystem/base_render_osystem.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'engines/wintermute') diff --git a/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp b/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp index 6d67253038..03ec827668 100644 --- a/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp +++ b/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp @@ -573,6 +573,11 @@ Rect32 BaseRenderOSystem::getViewPort() { ////////////////////////////////////////////////////////////////////////// void BaseRenderOSystem::modTargetRect(Common::Rect *rect) { + // FIXME: This is wrong in quite a few ways right now, and ends up + // breaking the notebook in Dirty Split, so we disable the correction + // for now, this will need fixing when a game with odd aspect-ratios + // show up. + return; rect->left = (int16)MathUtil::round(rect->left * _ratioX + _borderLeft - _renderRect.left); rect->top = (int16)MathUtil::round(rect->top * _ratioY + _borderTop - _renderRect.top); rect->setWidth((int16)MathUtil::roundUp(rect->width() * _ratioX)); -- cgit v1.2.3