mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
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:
parent
b4d0587862
commit
b715b71e40
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue