[Scummvm-cvs-logs] SF.net SVN: scummvm: [26321] scummvm/trunk/engines/gob/imd.cpp
drmccoy at users.sourceforge.net
drmccoy at users.sourceforge.net
Thu Mar 29 21:37:54 CEST 2007
Revision: 26321
http://scummvm.svn.sourceforge.net/scummvm/?rev=26321&view=rev
Author: drmccoy
Date: 2007-03-29 12:37:53 -0700 (Thu, 29 Mar 2007)
Log Message:
-----------
Mind the time needed to update the screen when waiting for a sound slice to finish
Modified Paths:
--------------
scummvm/trunk/engines/gob/imd.cpp
Modified: scummvm/trunk/engines/gob/imd.cpp
===================================================================
--- scummvm/trunk/engines/gob/imd.cpp 2007-03-29 19:28:47 UTC (rev 26320)
+++ scummvm/trunk/engines/gob/imd.cpp 2007-03-29 19:37:53 UTC (rev 26321)
@@ -1217,8 +1217,13 @@
}
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
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list