aboutsummaryrefslogtreecommitdiff
path: root/backends/graphics/opengl/opengl-graphics.cpp
diff options
context:
space:
mode:
authorAlejandro Marzini2010-08-01 22:53:18 +0000
committerAlejandro Marzini2010-08-01 22:53:18 +0000
commit41204282ecce8b0e2e39d6e869103f736d0690f7 (patch)
treea427a25bdfbbc7a8c8cfb58285e08d88e3ddd7d5 /backends/graphics/opengl/opengl-graphics.cpp
parentb816849c7898085e543a672fa9c0a657246afd62 (diff)
downloadscummvm-rg350-41204282ecce8b0e2e39d6e869103f736d0690f7.tar.gz
scummvm-rg350-41204282ecce8b0e2e39d6e869103f736d0690f7.tar.bz2
scummvm-rg350-41204282ecce8b0e2e39d6e869103f736d0690f7.zip
OPENGL: By default only enable None, Conserve and 4/3 aspect ratio corrections.
svn-id: r51599
Diffstat (limited to 'backends/graphics/opengl/opengl-graphics.cpp')
-rw-r--r--backends/graphics/opengl/opengl-graphics.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/backends/graphics/opengl/opengl-graphics.cpp b/backends/graphics/opengl/opengl-graphics.cpp
index 206823adb0..6963c4c1db 100644
--- a/backends/graphics/opengl/opengl-graphics.cpp
+++ b/backends/graphics/opengl/opengl-graphics.cpp
@@ -1179,7 +1179,11 @@ void OpenGLGraphicsManager::setAspectRatioCorrection(int ratio) {
if (_transactionMode == kTransactionActive) {
if (ratio == -1)
// If -1, switch to next mode
+#ifdef USE_ALL_ASR
_videoMode.aspectRatioCorrection = (_videoMode.aspectRatioCorrection + 1) % 5;
+#else
+ _videoMode.aspectRatioCorrection = (_videoMode.aspectRatioCorrection + 1) % 3;
+#endif
else
_videoMode.aspectRatioCorrection = ratio;
_transactionDetails.needHotswap = true;