[Scummvm-cvs-logs] CVS: scummvm/simon simon.cpp,1.306,1.307
Max Horn
fingolfin at users.sourceforge.net
Sun Oct 5 07:38:06 CEST 2003
Update of /cvsroot/scummvm/scummvm/simon
In directory sc8-pr-cvs1:/tmp/cvs-serv17277/simon
Modified Files:
simon.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: simon.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/simon/simon.cpp,v
retrieving revision 1.306
retrieving revision 1.307
diff -u -d -r1.306 -r1.307
--- simon.cpp 3 Oct 2003 19:42:27 -0000 1.306
+++ simon.cpp 5 Oct 2003 14:37:16 -0000 1.307
@@ -203,7 +203,6 @@
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 @@
// 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() {
More information about the Scummvm-git-logs
mailing list