[Scummvm-cvs-logs] SF.net SVN: scummvm: [24518] scummvm/trunk/backends/timer/default/ default-timer.cpp
fingolfin at users.sourceforge.net
fingolfin at users.sourceforge.net
Thu Oct 26 09:25:29 CEST 2006
Revision: 24518
http://svn.sourceforge.net/scummvm/?rev=24518&view=rev
Author: fingolfin
Date: 2006-10-26 00:25:25 -0700 (Thu, 26 Oct 2006)
Log Message:
-----------
Increase timer accuracy again
Modified Paths:
--------------
scummvm/trunk/backends/timer/default/default-timer.cpp
Modified: scummvm/trunk/backends/timer/default/default-timer.cpp
===================================================================
--- scummvm/trunk/backends/timer/default/default-timer.cpp 2006-10-25 23:49:41 UTC (rev 24517)
+++ scummvm/trunk/backends/timer/default/default-timer.cpp 2006-10-26 07:25:25 UTC (rev 24518)
@@ -80,7 +80,7 @@
void DefaultTimerManager::handler() {
Common::StackLock lock(_mutex);
- const int32 curTime = g_system->getMillis();
+ const int32 curTime = g_system->getMillis() * 1000;
// Repeat as long as there is a TimerSlot that is scheduled to fire.
TimerSlot *slot = _head->next;
@@ -109,13 +109,11 @@
Common::StackLock lock(_mutex);
- interval /= 1000;
-
TimerSlot *slot = new TimerSlot;
slot->callback = callback;
slot->refCon = refCon;
slot->interval = interval;
- slot->nextFireTime = g_system->getMillis() + interval;
+ slot->nextFireTime = g_system->getMillis() * 1000 + interval;
slot->next = 0;
insertPrioQueue(_head, slot);
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