From b4e5d97994a5827350e030429caea364514dadda Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sun, 5 Oct 2003 14:37:16 +0000 Subject: 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 --- queen/queen.cpp | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'queen') diff --git a/queen/queen.cpp b/queen/queen.cpp index dd400d5be9..001021fa15 100644 --- a/queen/queen.cpp +++ b/queen/queen.cpp @@ -94,23 +94,9 @@ void QueenEngine::go() { } void QueenEngine::initialise(void) { - OSystem::Property prop; - _queenResource = new QueenResource(_gameDataPath); _queenLogic = new QueenLogic(_queenResource); //_queenSound = new QueenSound(_mixer, _detector->_sfx_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")); - _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); - } } void QueenEngine::delay(uint amount) { -- cgit v1.2.3