diff options
author | Max Horn | 2006-02-17 00:01:18 +0000 |
---|---|---|
committer | Max Horn | 2006-02-17 00:01:18 +0000 |
commit | a96760a2fdf32a1dc3c6cb44cfd247e4b1b3ab79 (patch) | |
tree | 499b85db76c71d966c30aa0b35deb35a68642a0c /base | |
parent | fde1da92f068f700d82774360dd6cd05c6c0adcc (diff) | |
download | scummvm-rg350-a96760a2fdf32a1dc3c6cb44cfd247e4b1b3ab79.tar.gz scummvm-rg350-a96760a2fdf32a1dc3c6cb44cfd247e4b1b3ab79.tar.bz2 scummvm-rg350-a96760a2fdf32a1dc3c6cb44cfd247e4b1b3ab79.zip |
Reduced use of GF_DEFAULT_TO_1X_SCALER in favor of a new param to Engine::initCommonGFX; added a TODO stating that it should eventually be removed completly
svn-id: r20738
Diffstat (limited to 'base')
-rw-r--r-- | base/engine.cpp | 4 | ||||
-rw-r--r-- | base/engine.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/base/engine.cpp b/base/engine.cpp index c92caacdc2..38e2b9e0dc 100644 --- a/base/engine.cpp +++ b/base/engine.cpp @@ -60,7 +60,7 @@ Engine::~Engine() { g_engine = NULL; } -void Engine::initCommonGFX(GameDetector &detector) { +void Engine::initCommonGFX(GameDetector &detector, bool defaultTo1XScaler) { const bool useDefaultGraphicsMode = !ConfMan.hasKey("gfx_mode", Common::ConfigManager::kTransientDomain) && ( @@ -70,7 +70,7 @@ void Engine::initCommonGFX(GameDetector &detector) { ); // See if the game should default to 1x scaler - if (useDefaultGraphicsMode && (detector._game.features & GF_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... diff --git a/base/engine.h b/base/engine.h index 6517d4bba1..da01a34eb9 100644 --- a/base/engine.h +++ b/base/engine.h @@ -72,7 +72,7 @@ public: /** Specific for each engine: prepare error string. */ virtual void errorString(const char *buf_input, char *buf_output); - void initCommonGFX(GameDetector &detector); + void initCommonGFX(GameDetector &detector, bool defaultTo1XScaler); /** On some systems, check if the game appears to be run from CD. */ void checkCD(); |