diff options
author | Max Horn | 2003-10-05 14:37:16 +0000 |
---|---|---|
committer | Max Horn | 2003-10-05 14:37:16 +0000 |
commit | b4e5d97994a5827350e030429caea364514dadda (patch) | |
tree | 639bb20ae3e68f000e61293c165b8ea8929b16f7 /simon | |
parent | bfde7528bab0dfa74bde6173ca31d61818c01bd9 (diff) | |
download | scummvm-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 'simon')
-rw-r--r-- | simon/simon.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/simon/simon.cpp b/simon/simon.cpp index c26f84f689..1330d83177 100644 --- a/simon/simon.cpp +++ b/simon/simon.cpp @@ -203,7 +203,6 @@ static const GameSpecificSettings simon2dos_settings = { SimonEngine::SimonEngine(GameDetector *detector, OSystem *syst) : Engine(detector, syst), midi (syst) { - OSystem::Property prop; _vc_ptr = 0; _game_offsets_ptr = 0; @@ -498,18 +497,6 @@ SimonEngine::SimonEngine(GameDetector *detector, OSystem *syst) // FIXME Use auto dirty rects cleanup code to reduce CPU usage _system->property(OSystem::PROP_WANT_RECT_OPTIM,0); - - // 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 scaler 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); - } } SimonEngine::~SimonEngine() { |