[Scummvm-cvs-logs] SF.net SVN: scummvm:[49555] scummvm/branches/gsoc2010-opengl/backends/ platform/sdl/sdl.cpp

vgvgf at users.sourceforge.net vgvgf at users.sourceforge.net
Thu Jun 10 05:16:51 CEST 2010


Revision: 49555
          http://scummvm.svn.sourceforge.net/scummvm/?rev=49555&view=rev
Author:   vgvgf
Date:     2010-06-10 03:16:50 +0000 (Thu, 10 Jun 2010)

Log Message:
-----------
Made creation of SdlMutexManager earlier than other modules.

Modified Paths:
--------------
    scummvm/branches/gsoc2010-opengl/backends/platform/sdl/sdl.cpp

Modified: scummvm/branches/gsoc2010-opengl/backends/platform/sdl/sdl.cpp
===================================================================
--- scummvm/branches/gsoc2010-opengl/backends/platform/sdl/sdl.cpp	2010-06-10 02:08:08 UTC (rev 49554)
+++ scummvm/branches/gsoc2010-opengl/backends/platform/sdl/sdl.cpp	2010-06-10 03:16:50 UTC (rev 49555)
@@ -106,6 +106,12 @@
 	// Enable unicode support if possible
 	SDL_EnableUNICODE(1);
 
+	// Create and hook up the mutex manager, if none exists yet (we check for
+	// this to allow subclasses to provide their own).
+	if (_mutexManager == 0) {
+		_mutexManager = new SdlMutexManager();
+	}
+
 	// enable joystick
 	if (joystick_num > -1 && SDL_NumJoysticks() > 0) {
 		printf("Using joystick: %s\n", SDL_JoystickName(0));
@@ -145,12 +151,6 @@
 		_timerID = SDL_AddTimer(10, &timer_handler, _timer);
 	}
 
-	// Create and hook up the mutex manager, if none exists yet (we check for
-	// this to allow subclasses to provide their own).
-	if (_mutexManager == 0) {
-		_mutexManager = new SdlMutexManager();
-	}
-
 	// Create and hook up the graphics manager, if none exists yet (we check for
 	// this to allow subclasses to provide their own).
 	if (_graphicsManager == 0) {


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list