diff options
author | Alejandro Marzini | 2010-07-30 03:06:57 +0000 |
---|---|---|
committer | Alejandro Marzini | 2010-07-30 03:06:57 +0000 |
commit | 9daa1c7f9359ca2467e9067b2f31021fdb7e0981 (patch) | |
tree | 2c1347da2845d81c85f4bb6b2aeb24ed92c83e25 /backends/graphics/sdl/sdl-graphics.cpp | |
parent | 37f7748a4abe9bf915871345797826641899ba49 (diff) | |
download | scummvm-rg350-9daa1c7f9359ca2467e9067b2f31021fdb7e0981.tar.gz scummvm-rg350-9daa1c7f9359ca2467e9067b2f31021fdb7e0981.tar.bz2 scummvm-rg350-9daa1c7f9359ca2467e9067b2f31021fdb7e0981.zip |
OSYSTEM: Add resetGraphicsScale() method.
This fixes a hack for resetting the graphics scale to x1 when starting games that have a large screen size. The SDL graphics manager should now scale back to x1 without changing the current scaler in use, as well as the OpenGL graphics manager.
svn-id: r51492
Diffstat (limited to 'backends/graphics/sdl/sdl-graphics.cpp')
-rw-r--r-- | backends/graphics/sdl/sdl-graphics.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/backends/graphics/sdl/sdl-graphics.cpp b/backends/graphics/sdl/sdl-graphics.cpp index 2d61cec185..a6cf5c54dd 100644 --- a/backends/graphics/sdl/sdl-graphics.cpp +++ b/backends/graphics/sdl/sdl-graphics.cpp @@ -248,6 +248,10 @@ int SdlGraphicsManager::getDefaultGraphicsMode() const { return GFX_DOUBLESIZE; } +void SdlGraphicsManager::resetGraphicsScale() { + setGraphicsMode(s_gfxModeSwitchTable[_scalerType][0]); +} + void SdlGraphicsManager::beginGFXTransaction() { assert(_transactionMode == kTransactionNone); |