aboutsummaryrefslogtreecommitdiff
path: root/engines/engine.cpp
diff options
context:
space:
mode:
authorAlejandro Marzini2010-07-30 03:06:57 +0000
committerAlejandro Marzini2010-07-30 03:06:57 +0000
commit9daa1c7f9359ca2467e9067b2f31021fdb7e0981 (patch)
tree2c1347da2845d81c85f4bb6b2aeb24ed92c83e25 /engines/engine.cpp
parent37f7748a4abe9bf915871345797826641899ba49 (diff)
downloadscummvm-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 'engines/engine.cpp')
-rw-r--r--engines/engine.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/engines/engine.cpp b/engines/engine.cpp
index 84fc0bbe4e..3c85220931 100644
--- a/engines/engine.cpp
+++ b/engines/engine.cpp
@@ -154,10 +154,7 @@ void initCommonGFX(bool defaultTo1XScaler) {
// See if the game should default to 1x scaler
if (useDefaultGraphicsMode && defaultTo1XScaler) {
- // FIXME: As a hack, we use "1x" here. Would be nicer to use
- // getDefaultGraphicsMode() instead, but right now, we do not specify
- // whether that is a 1x scaler or not...
- g_system->setGraphicsMode("1x");
+ g_system->resetGraphicsScale();
} else {
// Override global scaler with any game-specific define
if (ConfMan.hasKey("gfx_mode")) {