diff options
author | Alejandro Marzini | 2010-09-03 03:47:05 +0000 |
---|---|---|
committer | Alejandro Marzini | 2010-09-03 03:47:05 +0000 |
commit | 30cbd35e740b801313be83209eec6956feeb512d (patch) | |
tree | feb8ee85e41d396a307a7e0d7960badd86d87942 /backends/graphics/opengl/opengl-graphics.cpp | |
parent | 19bf2b9eb6c6d92a31a864313f6434dd693f83a1 (diff) | |
download | scummvm-rg350-30cbd35e740b801313be83209eec6956feeb512d.tar.gz scummvm-rg350-30cbd35e740b801313be83209eec6956feeb512d.tar.bz2 scummvm-rg350-30cbd35e740b801313be83209eec6956feeb512d.zip |
OPENGL: Fix enable aspect ratio feature.
svn-id: r52502
Diffstat (limited to 'backends/graphics/opengl/opengl-graphics.cpp')
-rw-r--r-- | backends/graphics/opengl/opengl-graphics.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/backends/graphics/opengl/opengl-graphics.cpp b/backends/graphics/opengl/opengl-graphics.cpp index a920aaffbf..187a7aec26 100644 --- a/backends/graphics/opengl/opengl-graphics.cpp +++ b/backends/graphics/opengl/opengl-graphics.cpp @@ -48,7 +48,8 @@ OpenGLGraphicsManager::OpenGLGraphicsManager() _cursorVisible(false), _cursorKeyColor(0), _cursorTargetScale(1), _formatBGR(false), - _displayX(0), _displayY(0), _displayWidth(0), _displayHeight(0) { + _displayX(0), _displayY(0), _displayWidth(0), _displayHeight(0), + _aspectRatioCorrection(false) { memset(&_oldVideoMode, 0, sizeof(_oldVideoMode)); memset(&_videoMode, 0, sizeof(_videoMode)); @@ -95,7 +96,8 @@ bool OpenGLGraphicsManager::hasFeature(OSystem::Feature f) { void OpenGLGraphicsManager::setFeatureState(OSystem::Feature f, bool enable) { switch (f) { case OSystem::kFeatureAspectRatioCorrection: - setGraphicsMode(enable ? OpenGL::GFX_CONSERVE : OpenGL::GFX_NORMAL); + _videoMode.mode = OpenGL::GFX_4_3; + _aspectRatioCorrection = enable; break; default: break; @@ -1293,6 +1295,7 @@ void OpenGLGraphicsManager::switchDisplayMode(int mode) { _videoMode.mode = mode; _transactionDetails.needRefresh = true; + _aspectRatioCorrection = false; } } |