[Scummvm-cvs-logs] SF.net SVN: scummvm:[45118] scummvm/trunk/engines/sci/engine/kgraphics.cpp
m_kiewitz at users.sourceforge.net
m_kiewitz at users.sourceforge.net
Thu Oct 15 15:30:22 CEST 2009
Revision: 45118
http://scummvm.svn.sourceforge.net/scummvm/?rev=45118&view=rev
Author: m_kiewitz
Date: 2009-10-15 13:30:18 +0000 (Thu, 15 Oct 2009)
Log Message:
-----------
SCI: kAnimate speed throttler fix
Modified Paths:
--------------
scummvm/trunk/engines/sci/engine/kgraphics.cpp
Modified: scummvm/trunk/engines/sci/engine/kgraphics.cpp
===================================================================
--- scummvm/trunk/engines/sci/engine/kgraphics.cpp 2009-10-15 13:00:18 UTC (rev 45117)
+++ scummvm/trunk/engines/sci/engine/kgraphics.cpp 2009-10-15 13:30:18 UTC (rev 45118)
@@ -941,10 +941,12 @@
uint32 curTime = g_system->getMillis();
uint32 duration = curTime - s->_lastAnimateTime;
- if (duration < 50) {
- gfxop_sleep(s->gfx_state, 50-duration);
+ if (duration < 40) {
+ gfxop_sleep(s->gfx_state, 40-duration);
+ s->_lastAnimateTime = g_system->getMillis();
+ } else {
+ s->_lastAnimateTime = curTime;
}
- s->_lastAnimateTime = curTime;
return s->r_acc;
}
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