aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/sdl
diff options
context:
space:
mode:
authorAlejandro Marzini2010-06-10 03:16:50 +0000
committerAlejandro Marzini2010-06-10 03:16:50 +0000
commit7b63e8ae2505897f5c275bf755ef8384b4cb91a4 (patch)
tree24e4868e6256caef45666f5355e49ece1fa71ba8 /backends/platform/sdl
parent33c36f3c7ce457ca6397e85682a864e37e6c5c7b (diff)
downloadscummvm-rg350-7b63e8ae2505897f5c275bf755ef8384b4cb91a4.tar.gz
scummvm-rg350-7b63e8ae2505897f5c275bf755ef8384b4cb91a4.tar.bz2
scummvm-rg350-7b63e8ae2505897f5c275bf755ef8384b4cb91a4.zip
Made creation of SdlMutexManager earlier than other modules.
svn-id: r49555
Diffstat (limited to 'backends/platform/sdl')
-rw-r--r--backends/platform/sdl/sdl.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/backends/platform/sdl/sdl.cpp b/backends/platform/sdl/sdl.cpp
index c662fed2bf..684befa623 100644
--- a/backends/platform/sdl/sdl.cpp
+++ b/backends/platform/sdl/sdl.cpp
@@ -106,6 +106,12 @@ void OSystem_SDL::initBackend() {
// 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 @@ void OSystem_SDL::initBackend() {
_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) {