mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-06-05 23:10:58 +00:00
Make sure we never get a zero tick_start value
This commit is contained in:
parent
c468d93760
commit
57d34f2e10
1 changed files with 3 additions and 0 deletions
|
@ -550,6 +550,9 @@ void SDL_TicksInit(void)
|
|||
tick_denominator_ms = (Uint32)(tick_freq / gcd);
|
||||
|
||||
tick_start = SDL_GetPerformanceCounter();
|
||||
if (!tick_start) {
|
||||
--tick_start;
|
||||
}
|
||||
}
|
||||
|
||||
void SDL_TicksQuit(void)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue