diff options
author | Sven Hesse | 2007-03-29 19:37:53 +0000 |
---|---|---|
committer | Sven Hesse | 2007-03-29 19:37:53 +0000 |
commit | 85ea7e97f18f219e6bea958164aced355a7625b8 (patch) | |
tree | 2670fb62c7ffc27d08bc8d92fc0314db1a8bc572 | |
parent | 719fb212377a6b1135e50ff25c7de914b9fe400b (diff) | |
download | scummvm-rg350-85ea7e97f18f219e6bea958164aced355a7625b8.tar.gz scummvm-rg350-85ea7e97f18f219e6bea958164aced355a7625b8.tar.bz2 scummvm-rg350-85ea7e97f18f219e6bea958164aced355a7625b8.zip |
Mind the time needed to update the screen when waiting for a sound slice to finish
svn-id: r26321
-rw-r--r-- | engines/gob/imd.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/gob/imd.cpp b/engines/gob/imd.cpp index 7f2ad3d211..4d2e6c7243 100644 --- a/engines/gob/imd.cpp +++ b/engines/gob/imd.cpp @@ -1217,8 +1217,13 @@ uint32 ImdPlayer::view(Imd *imdPtr, int16 frame) { } inline void ImdPlayer::waitEndSoundSlice() { + uint32 timeKey = _vm->_util->getTimeKey(); + int32 waitTime = _soundSliceLength; + _vm->_video->retrace(); - _vm->_util->delay(_soundSliceLength); + waitTime -= _vm->_util->getTimeKey() - timeKey; + if (waitTime > 0) + _vm->_util->delay(waitTime); } } // End of namespace Gob |