[Scummvm-cvs-logs] CVS: scummvm/scumm scummvm.cpp,2.423,2.424

Max Horn fingolfin at users.sourceforge.net
Sun Oct 5 07:38:05 CEST 2003


Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv17277/scumm

Modified Files:
	scummvm.cpp 
Log Message:
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?)

Index: scummvm.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/scummvm.cpp,v
retrieving revision 2.423
retrieving revision 2.424
diff -u -d -r2.423 -r2.424
--- scummvm.cpp	5 Oct 2003 06:38:07 -0000	2.423
+++ scummvm.cpp	5 Oct 2003 14:37:16 -0000	2.424
@@ -640,23 +640,11 @@
 	_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





More information about the Scummvm-git-logs mailing list