[Scummvm-cvs-logs] CVS: scummvm/bs2 sword2.cpp,1.49,1.50
Max Horn
fingolfin at users.sourceforge.net
Sun Oct 5 07:38:04 CEST 2003
Update of /cvsroot/scummvm/scummvm/bs2
In directory sc8-pr-cvs1:/tmp/cvs-serv17277/bs2
Modified Files:
sword2.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: sword2.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/bs2/sword2.cpp,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -d -r1.49 -r1.50
--- sword2.cpp 4 Oct 2003 08:07:02 -0000 1.49
+++ sword2.cpp 5 Oct 2003 14:37:16 -0000 1.50
@@ -252,7 +252,6 @@
}
void Sword2Engine::go() {
- OSystem::Property prop;
uint32 rv;
uint8 breakOut = 0;
_keyboardEvent ke;
@@ -265,21 +264,9 @@
// manager until a window has been created as any errors are displayed
// via a window, thus time becomes a loop.
- // 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);
- }
-
debug(5, "CALLING: InitialiseDisplay");
rv = InitialiseDisplay(640, 480);
- // 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 (rv != RD_OK) {
// ReportDriverError(rv);
CloseAppWindow();
More information about the Scummvm-git-logs
mailing list