diff options
Diffstat (limited to 'sky/sky.cpp')
-rw-r--r-- | sky/sky.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sky/sky.cpp b/sky/sky.cpp index def1af0eed..7bd6fe2969 100644 --- a/sky/sky.cpp +++ b/sky/sky.cpp @@ -224,6 +224,7 @@ void SkyState::go() { } void SkyState::initialise(void) { + OSystem::Property prop; _skyDisk = new SkyDisk(_gameDataPath); _skySound = new SkySound(_mixer, _skyDisk); @@ -241,6 +242,12 @@ void SkyState::initialise(void) { _skyMusic = new SkyGmMusic(_detector->createMidi(), _skyDisk, _system); } + // Override global scaler with any game-specific define + if (g_config->get("gfx_mode")) { + prop.gfx_mode = _detector->parseGraphicsMode(g_config->get("gfx_mode")); + _system->property(OSystem::PROP_SET_GFX_MODE, &prop); + } + // Override global fullscreen setting with any game-specific define if (g_config->getBool("fullscreen", false)) { if (!_system->property(OSystem::PROP_GET_FULLSCREEN, 0)) |