aboutsummaryrefslogtreecommitdiff
path: root/engines/touche/midi.cpp
diff options
context:
space:
mode:
authorGregory Montoir2006-11-15 22:35:45 +0000
committerGregory Montoir2006-11-15 22:35:45 +0000
commit24df07d29dfeae8df28b74744f71962eb34686fc (patch)
treef8a26b7076fc30957a87acec8189689385b14590 /engines/touche/midi.cpp
parentf55320f988a481ee7d92bcce39dfcbbf31d4151a (diff)
downloadscummvm-rg350-24df07d29dfeae8df28b74744f71962eb34686fc.tar.gz
scummvm-rg350-24df07d29dfeae8df28b74744f71962eb34686fc.tar.bz2
scummvm-rg350-24df07d29dfeae8df28b74744f71962eb34686fc.zip
added handler for flag 618 (cursor display on/off) and workaround a palette glitch
svn-id: r24724
Diffstat (limited to 'engines/touche/midi.cpp')
-rw-r--r--engines/touche/midi.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/touche/midi.cpp b/engines/touche/midi.cpp
index fd8a9c4add..8420a9b7dc 100644
--- a/engines/touche/midi.cpp
+++ b/engines/touche/midi.cpp
@@ -105,10 +105,12 @@ void MidiPlayer::close() {
_driver->setTimerCallback(NULL, NULL);
_mutex.unlock();
stop();
- _parser->setMidiDriver(NULL);
- delete _parser;
+ _mutex.lock();
_driver->close();
_driver = 0;
+ _parser->setMidiDriver(NULL);
+ delete _parser;
+ _mutex.unlock();
}
void MidiPlayer::send(uint32 b) {