aboutsummaryrefslogtreecommitdiff
path: root/sky/sky.cpp
diff options
context:
space:
mode:
authorMax Horn2003-10-05 14:37:16 +0000
committerMax Horn2003-10-05 14:37:16 +0000
commitb4e5d97994a5827350e030429caea364514dadda (patch)
tree639bb20ae3e68f000e61293c165b8ea8929b16f7 /sky/sky.cpp
parentbfde7528bab0dfa74bde6173ca31d61818c01bd9 (diff)
downloadscummvm-rg350-b4e5d97994a5827350e030429caea364514dadda.tar.gz
scummvm-rg350-b4e5d97994a5827350e030429caea364514dadda.tar.bz2
scummvm-rg350-b4e5d97994a5827350e030429caea364514dadda.zip
factor out common gfx_mode/fullscreen setup code from the game engines into the main code (maybe putting this into the Engine constructor would be better, though?)
svn-id: r10611
Diffstat (limited to 'sky/sky.cpp')
-rw-r--r--sky/sky.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/sky/sky.cpp b/sky/sky.cpp
index 7c8230f14d..0b8b3acc41 100644
--- a/sky/sky.cpp
+++ b/sky/sky.cpp
@@ -239,8 +239,6 @@ void SkyState::go() {
}
void SkyState::initialise(void) {
- OSystem::Property prop;
-
_skyDisk = new SkyDisk(_gameDataPath);
_skySound = new SkySound(_mixer, _skyDisk, _detector->_sfx_volume);
@@ -257,18 +255,6 @@ 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))
- _system->property(OSystem::PROP_TOGGLE_FULLSCREEN, 0);
- }
-
if (isCDVersion()) {
if (_detector->_noSubtitles)
_systemVars.systemFlags |= SF_ALLOW_SPEECH;