diff options
author | Paweł Kołodziejski | 2003-03-20 10:58:10 +0000 |
---|---|---|
committer | Paweł Kołodziejski | 2003-03-20 10:58:10 +0000 |
commit | c4ee1cdf001cf5be6a2ae333e15c88b65c4cee18 (patch) | |
tree | 3a9401f02d0e50187e7ab05760d0e75d2ca0bfcf /scumm/smush | |
parent | dcd6a8d29d3cbc3450dcb86987779a16265c2b2e (diff) | |
download | scummvm-rg350-c4ee1cdf001cf5be6a2ae333e15c88b65c4cee18.tar.gz scummvm-rg350-c4ee1cdf001cf5be6a2ae333e15c88b65c4cee18.tar.bz2 scummvm-rg350-c4ee1cdf001cf5be6a2ae333e15c88b65c4cee18.zip |
take lock mutex mechanism also processKbd() and waitForTimer().
I hope it will finally solve locking gfx resources
svn-id: r6838
Diffstat (limited to 'scumm/smush')
-rw-r--r-- | scumm/smush/smush_player.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scumm/smush/smush_player.cpp b/scumm/smush/smush_player.cpp index e145f28623..5e945c60ad 100644 --- a/scumm/smush/smush_player.cpp +++ b/scumm/smush/smush_player.cpp @@ -884,10 +884,10 @@ void SmushPlayer::play(const char *filename, const char *directory) { init(); while (true) { + _scumm->_system->lock_mutex(_mutex); _scumm->processKbd(); _scumm->waitForTimer(1); if(_updateNeeded == true) { - _scumm->_system->lock_mutex(_mutex); uint32 end_time, start_time = _scumm->_system->get_msecs(); _scumm->_system->update_screen(); @@ -895,8 +895,8 @@ void SmushPlayer::play(const char *filename, const char *directory) { end_time = _scumm->_system->get_msecs(); debug(4, "Smush stats: BackendUpdateScreen( %03d )", end_time - start_time); - _scumm->_system->unlock_mutex(_mutex); } + _scumm->_system->unlock_mutex(_mutex); if (_scumm->_videoFinished == true) break; if (_scumm->_saveLoadFlag) |