diff options
author | Einar Johan Trøan Sømåen | 2012-09-15 18:05:18 +0200 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2012-09-15 18:05:18 +0200 |
commit | b1ec9280fd757184ce8262d3f25b3cf75fed19ec (patch) | |
tree | d635227487e55916005e8c1edaba2c9bc4fda39b /engines/wintermute/base/gfx/osystem/base_render_osystem.cpp | |
parent | cffda7710c7c0ba720797dbb025048e21e821708 (diff) | |
download | scummvm-rg350-b1ec9280fd757184ce8262d3f25b3cf75fed19ec.tar.gz scummvm-rg350-b1ec9280fd757184ce8262d3f25b3cf75fed19ec.tar.bz2 scummvm-rg350-b1ec9280fd757184ce8262d3f25b3cf75fed19ec.zip |
WINTERMUTE: Disable aspect-ratio correction for now.
Diffstat (limited to 'engines/wintermute/base/gfx/osystem/base_render_osystem.cpp')
-rw-r--r-- | engines/wintermute/base/gfx/osystem/base_render_osystem.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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)); |