[Scummvm-cvs-logs] CVS: residual main.cpp,1.50,1.51

Marcus Comstedt marcus_c at users.sourceforge.net
Sun Feb 5 09:22:01 CET 2006


Update of /cvsroot/scummvm/residual
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29067

Modified Files:
	main.cpp 
Log Message:
Moved instantiation of g_driver a bit earlier, since it is used by e.g. the Timer class now.

Index: main.cpp
===================================================================
RCS file: /cvsroot/scummvm/residual/main.cpp,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -d -r1.50 -r1.51
--- main.cpp	27 Aug 2005 16:08:44 -0000	1.50
+++ main.cpp	5 Feb 2006 17:21:00 -0000	1.51
@@ -158,6 +158,10 @@
 
 	atexit(quit);
 
+	if (TINYGL_GLOBAL)
+		g_driver = new DriverTinyGL(640, 480, 16, fullscreen);
+	else
+		g_driver = new DriverGL(640, 480, 24, fullscreen);
 	g_engine = new Engine();
 	g_resourceloader = new ResourceLoader();
 	g_localizer = new Localizer();
@@ -165,10 +169,6 @@
 	g_mixer->setVolume(255);
 	g_timer = new Timer();
 	g_smush = new Smush();
-	if (TINYGL_GLOBAL)
-		g_driver = new DriverTinyGL(640, 480, 16, fullscreen);
-	else
-		g_driver = new DriverGL(640, 480, 24, fullscreen);
 	g_imuse = new Imuse(20);
 
 	Bitmap *splash_bm = NULL;





More information about the Scummvm-git-logs mailing list