fixed stack lock at startup

svn-id: r8779
This commit is contained in:
Max Horn 2003-07-05 15:28:28 +00:00
parent 8a7d540687
commit ce9d154957
5 changed files with 14 additions and 10 deletions

View file

@ -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);