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
This commit is contained in:
Max Horn 2006-02-17 00:01:18 +00:00
parent fde1da92f0
commit a96760a2fd
13 changed files with 19 additions and 14 deletions

View file

@ -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...