diff options
author | Max Horn | 2003-07-05 15:28:28 +0000 |
---|---|---|
committer | Max Horn | 2003-07-05 15:28:28 +0000 |
commit | ce9d154957d8843a07a32730e7fd3400948e164d (patch) | |
tree | 9d87bf17713d1e064e4d187ab93272e66c5ec91b /backends/sdl/sdl.cpp | |
parent | 8a7d540687abdc9a4d431612318bbe43ea0424c8 (diff) | |
download | scummvm-rg350-ce9d154957d8843a07a32730e7fd3400948e164d.tar.gz scummvm-rg350-ce9d154957d8843a07a32730e7fd3400948e164d.tar.bz2 scummvm-rg350-ce9d154957d8843a07a32730e7fd3400948e164d.zip |
fixed stack lock at startup
svn-id: r8779
Diffstat (limited to 'backends/sdl/sdl.cpp')
-rw-r--r-- | backends/sdl/sdl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/sdl/sdl.cpp b/backends/sdl/sdl.cpp index 0e2d2b42a1..8d73295be4 100644 --- a/backends/sdl/sdl.cpp +++ b/backends/sdl/sdl.cpp @@ -210,7 +210,7 @@ void OSystem_SDL::hotswap_gfx_mode() { void OSystem_SDL::update_screen() { assert(_hwscreen != NULL); - StackLock lock(_graphicsMutex); // Lock the mutex until this function ends + StackLock lock(_graphicsMutex, this); // Lock the mutex until this function ends // If the shake position changed, fill the dirty area with blackness if (_currentShakePos != _newShakePos) { @@ -336,7 +336,7 @@ void OSystem_SDL::update_screen() { uint32 OSystem_SDL::property(int param, Property *value) { - StackLock lock(_graphicsMutex); // Lock the mutex until this function ends + StackLock lock(_graphicsMutex, this); // Lock the mutex until this function ends if (param == PROP_TOGGLE_FULLSCREEN) { assert(_hwscreen != 0); |