diff options
author | Alejandro Marzini | 2010-08-06 21:39:54 +0000 |
---|---|---|
committer | Alejandro Marzini | 2010-08-06 21:39:54 +0000 |
commit | 7b898648bcd17767945db07618d0934b76a5dcd5 (patch) | |
tree | 5e4cd641f37a5ffafa907f46cf0fe2717a4fe05f /backends/graphics/openglsdl | |
parent | 4e890f8d7425200a5c34556249b06aec88e3fb85 (diff) | |
download | scummvm-rg350-7b898648bcd17767945db07618d0934b76a5dcd5.tar.gz scummvm-rg350-7b898648bcd17767945db07618d0934b76a5dcd5.tar.bz2 scummvm-rg350-7b898648bcd17767945db07618d0934b76a5dcd5.zip |
OPENGL: Add 5/3 and 5/4 aspect ratio corrections.
svn-id: r51806
Diffstat (limited to 'backends/graphics/openglsdl')
-rw-r--r-- | backends/graphics/openglsdl/openglsdl-graphics.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/graphics/openglsdl/openglsdl-graphics.cpp b/backends/graphics/openglsdl/openglsdl-graphics.cpp index dddf73f3f8..2cfdffa5ac 100644 --- a/backends/graphics/openglsdl/openglsdl-graphics.cpp +++ b/backends/graphics/openglsdl/openglsdl-graphics.cpp @@ -333,9 +333,9 @@ bool OpenGLSdlGraphicsManager::loadGFXMode() { // Do not downscale dimensions, only enlarge them if needed if (screenAspectRatio > desiredAspectRatio) - _videoMode.hardwareHeight = _videoMode.overlayWidth * 10000 / desiredAspectRatio; + _videoMode.hardwareHeight = (_videoMode.overlayWidth * 10000 + 5000) / desiredAspectRatio; else if (screenAspectRatio < desiredAspectRatio) - _videoMode.hardwareWidth = _videoMode.overlayHeight * desiredAspectRatio / 10000; + _videoMode.hardwareWidth = (_videoMode.overlayHeight * desiredAspectRatio + 5000) / 10000; // Only adjust the overlay height if it is bigger than original one. If // the width is modified it can break the overlay. |