mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-18 20:18:59 +00:00
Fixed lockup while waiting for events
This commit is contained in:
parent
fd42a2f994
commit
d98bd67733
1 changed files with 1 additions and 1 deletions
|
|
@ -1092,7 +1092,7 @@ int SDL_WaitEventTimeoutNS(SDL_Event *event, Sint64 timeoutNS)
|
|||
case -1:
|
||||
return 0;
|
||||
case 0:
|
||||
if (timeoutNS > 0 && SDL_GetTicks() >= expiration) {
|
||||
if (timeoutNS > 0 && SDL_GetTicksNS() >= expiration) {
|
||||
/* Timeout expired and no events */
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue