[Scummvm-cvs-logs] CVS: residual main.cpp,1.31,1.32
Joost Peters
joostp at users.sourceforge.net
Sat Nov 6 15:00:21 CET 2004
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/saga script.h,1.24,1.25 sfuncs.cpp,1.33,1.34 sthread.cpp,1.36,1.37
- Next message: [Scummvm-cvs-logs] CVS: scummvm/saga objectdata.cpp,NONE,1.1 objectdata.h,NONE,1.1 interface.cpp,1.33,1.34 interface.h,1.13,1.14 module.mk,1.17,1.18 resnames.h,1.9,1.10 saga.cpp,1.56,1.57 saga.h,1.43,1.44 sfuncs.cpp,1.34,1.35
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/scummvm/residual
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8226
Modified Files:
main.cpp
Log Message:
change initialisation order so we can't accidentally use the not-yet-initialised (g_)smush object.
this prevents a crash/hang on mac
Index: main.cpp
===================================================================
RCS file: /cvsroot/scummvm/residual/main.cpp,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- main.cpp 1 Nov 2004 18:49:48 -0000 1.31
+++ main.cpp 6 Nov 2004 22:56:28 -0000 1.32
@@ -111,8 +111,6 @@
if (SDL_Init(SDL_INIT_EVERYTHING) < 0)
return 1;
- g_driver = new Driver(640, 480, 24);
-
atexit(SDL_Quit);
atexit(saveRegistry);
@@ -120,6 +118,8 @@
g_timer = new Timer();
g_smush = new Smush();
+ g_driver = new Driver(640, 480, 24);
+
Mixer::instance()->start();
Bitmap *splash_bm = ResourceLoader::instance()->loadBitmap("splash.bm");
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/saga script.h,1.24,1.25 sfuncs.cpp,1.33,1.34 sthread.cpp,1.36,1.37
- Next message: [Scummvm-cvs-logs] CVS: scummvm/saga objectdata.cpp,NONE,1.1 objectdata.h,NONE,1.1 interface.cpp,1.33,1.34 interface.h,1.13,1.14 module.mk,1.17,1.18 resnames.h,1.9,1.10 saga.cpp,1.56,1.57 saga.h,1.43,1.44 sfuncs.cpp,1.34,1.35
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list