aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorMax Horn2007-06-15 21:21:42 +0000
committerMax Horn2007-06-15 21:21:42 +0000
commitf80799cd5be7489fb4ab3fbb7fc55ecac25d1a6d (patch)
tree037576606db2603b074cb872da7e4467d4b7288d /backends
parent26a6c42b8f053585712c5960c070e56c310f036f (diff)
downloadscummvm-rg350-f80799cd5be7489fb4ab3fbb7fc55ecac25d1a6d.tar.gz
scummvm-rg350-f80799cd5be7489fb4ab3fbb7fc55ecac25d1a6d.tar.bz2
scummvm-rg350-f80799cd5be7489fb4ab3fbb7fc55ecac25d1a6d.zip
Fix for bug #1690813: BASS: Crash when changing scalers during intro
svn-id: r27435
Diffstat (limited to 'backends')
-rw-r--r--backends/platform/sdl/graphics.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/backends/platform/sdl/graphics.cpp b/backends/platform/sdl/graphics.cpp
index 212eb43585..e0b7de28ab 100644
--- a/backends/platform/sdl/graphics.cpp
+++ b/backends/platform/sdl/graphics.cpp
@@ -1597,6 +1597,8 @@ void OSystem_SDL::displayMessageOnOSD(const char *msg) {
assert (_transactionMode == kTransactionNone);
assert(msg);
+ Common::StackLock lock(_graphicsMutex); // Lock the mutex until this function ends
+
uint i;
// Lock the OSD surface for drawing