[Scummvm-cvs-logs] CVS: scummvm/sky sky.cpp,1.115,1.116
Max Horn
fingolfin at users.sourceforge.net
Sun Oct 5 07:38:05 CEST 2003
Update of /cvsroot/scummvm/scummvm/sky
In directory sc8-pr-cvs1:/tmp/cvs-serv17277/sky
Modified Files:
sky.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: sky.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sky/sky.cpp,v
retrieving revision 1.115
retrieving revision 1.116
diff -u -d -r1.115 -r1.116
--- sky.cpp 28 Sep 2003 22:23:59 -0000 1.115
+++ sky.cpp 5 Oct 2003 14:37:16 -0000 1.116
@@ -239,8 +239,6 @@
}
void SkyState::initialise(void) {
- OSystem::Property prop;
-
_skyDisk = new SkyDisk(_gameDataPath);
_skySound = new SkySound(_mixer, _skyDisk, _detector->_sfx_volume);
@@ -255,18 +253,6 @@
_skyMusic = new SkyMT32Music(_detector->createMidi(), _skyDisk, _system);
else
_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()) {
More information about the Scummvm-git-logs
mailing list