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
This commit is contained in:
Jens Arnold 2005-11-26 11:22:33 +00:00
parent b4d0587862
commit b715b71e40

View file

@ -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;