From 41204282ecce8b0e2e39d6e869103f736d0690f7 Mon Sep 17 00:00:00 2001 From: Alejandro Marzini Date: Sun, 1 Aug 2010 22:53:18 +0000 Subject: OPENGL: By default only enable None, Conserve and 4/3 aspect ratio corrections. svn-id: r51599 --- backends/graphics/opengl/opengl-graphics.cpp | 4 ++++ backends/graphics/opengl/opengl-graphics.h | 3 +++ 2 files changed, 7 insertions(+) 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. -- cgit v1.2.3