aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorMax Horn2003-10-05 14:37:16 +0000
committerMax Horn2003-10-05 14:37:16 +0000
commitb4e5d97994a5827350e030429caea364514dadda (patch)
tree639bb20ae3e68f000e61293c165b8ea8929b16f7 /scumm
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 'scumm')
-rw-r--r--scumm/scummvm.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/scumm/scummvm.cpp b/scumm/scummvm.cpp
index 30d7ac909e..fc8dfa16d0 100644
--- a/scumm/scummvm.cpp
+++ b/scumm/scummvm.cpp
@@ -640,24 +640,12 @@ ScummEngine::ScummEngine(GameDetector *detector, OSystem *syst)
_sound->_sound_volume_sfx = detector->_sfx_volume;
_sound->_sound_volume_music = detector->_music_volume;
- // Override global scaler with any game-specific define
- if (g_config->get("gfx_mode")) {
- prop.gfx_mode = detector->parseGraphicsMode(g_config->get("gfx_mode"));
- syst->property(OSystem::PROP_SET_GFX_MODE, &prop);
- }
-
/* Initialize backend */
syst->init_size(_screenWidth, _screenHeight);
prop.cd_num = detector->_cdrom;
if (prop.cd_num >= 0 && (_features & GF_AUDIOTRACKS))
syst->property(OSystem::PROP_OPEN_CD, &prop);
- // Override global fullscreen setting with any game-specific define
- if (g_config->getBool("fullscreen", false)) {
- if (!syst->property(OSystem::PROP_GET_FULLSCREEN, 0))
- syst->property(OSystem::PROP_TOGGLE_FULLSCREEN, 0);
- }
-
#ifndef __GP32__ //ph0x FIXME, "quick dirty hack"
/* Bind the mixer to the system => mixer will be invoked
* automatically when samples need to be generated */