summaryrefslogtreecommitdiffstats
path: root/uisimulator
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2005-11-26 11:22:33 +0000
committerJens Arnold <amiconn@rockbox.org>2005-11-26 11:22:33 +0000
commitb715b71e404441302f41fa39493fd3a9d666666e (patch)
tree2d42acb13172f365ad78f896ea67b17c16d2e66e /uisimulator
parentb4d05878629db369ea1c7f2ed19b884085f59d61 (diff)
downloadrockbox-b715b71e404441302f41fa39493fd3a9d666666e.tar.gz
rockbox-b715b71e404441302f41fa39493fd3a9d666666e.tar.bz2
rockbox-b715b71e404441302f41fa39493fd3a9d666666e.zip
Win32 simulator: Fixed tick timer simulation for windows implementations with low timer resolution (Win9x, wine).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8068 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator')
-rw-r--r--uisimulator/win32/uisw32.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/uisimulator/win32/uisw32.c b/uisimulator/win32/uisw32.c
index b31eccf794..1b4dbbd410 100644
--- a/uisimulator/win32/uisw32.c
+++ b/uisimulator/win32/uisw32.c
@@ -77,7 +77,9 @@ LRESULT CALLBACK GUIWndProc (
new_tick = ((ticknow.QuadPart-tick1.QuadPart)*HZ)/persec.QuadPart;
if (new_tick != current_tick)
{
- sim_tick_tasks();
+ long i;
+ for (i = new_tick - current_tick; i > 0; i--)
+ sim_tick_tasks();
current_tick = new_tick;
}
return TRUE;