aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authordhewg2011-02-25 20:34:22 +0100
committerdhewg2011-02-25 20:49:48 +0100
commit93fdcbfa05f6cd19137d43b6e6828abacb6137dd (patch)
treeea7febd9a62aa1020ade6d17c5f1c49f14a0da71 /engines
parent8024f406387a748718496e9592ffccb3a6a51d26 (diff)
downloadscummvm-rg350-93fdcbfa05f6cd19137d43b6e6828abacb6137dd.tar.gz
scummvm-rg350-93fdcbfa05f6cd19137d43b6e6828abacb6137dd.tar.bz2
scummvm-rg350-93fdcbfa05f6cd19137d43b6e6828abacb6137dd.zip
ENGINES: We have resetGraphicsScale(), lets use it
If highres games pass defaultTo1XScaler=true to initGraphics(), use resetGraphicsScale() instead of hardcoding "1x" (which doesn't exist on the OpenGL backend) If an OpenGL mode is selected, it now doesn't switch back to plain SDL now for those games.
Diffstat (limited to 'engines')
-rw-r--r--engines/engine.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/engines/engine.cpp b/engines/engine.cpp
index 0d92c1aef1..825b75bfc8 100644
--- a/engines/engine.cpp
+++ b/engines/engine.cpp
@@ -155,10 +155,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")) {