aboutsummaryrefslogtreecommitdiff
path: root/backends/graphics/opengl
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
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')
-rw-r--r--backends/graphics/opengl/opengl-graphics.cpp4
-rw-r--r--backends/graphics/opengl/opengl-graphics.h3
2 files changed, 7 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;
diff --git a/backends/graphics/opengl/opengl-graphics.h b/backends/graphics/opengl/opengl-graphics.h
index 02930a4756..9672252deb 100644
--- a/backends/graphics/opengl/opengl-graphics.h
+++ b/backends/graphics/opengl/opengl-graphics.h
@@ -33,6 +33,9 @@
// Uncomment this to enable the 'on screen display' code.
#define USE_OSD 1
+// Uncomment this to enable all aspect ratio corrections (Will include 16/9 and 16/10)
+//#define USE_ALL_ASR 1
+
namespace OpenGL {
// The OpenGL GFX modes. They have to be inside the OpenGL namespace so they
// do not clash with the SDL GFX modes.