mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-31 23:15:37 +00:00
windows: SDL_Delay expects a 32-bit integer
This commit is contained in:
parent
e875775940
commit
d6cd450624
|
@ -379,7 +379,7 @@ int SDL_IMMDevice_Get(LPCWSTR devid, IMMDevice **device, SDL_bool iscapture)
|
|||
const Uint64 now = SDL_GetTicks64();
|
||||
if (timeout > now) {
|
||||
const Uint64 ticksleft = timeout - now;
|
||||
SDL_Delay(SDL_min(ticksleft, 300)); /* wait awhile and try again. */
|
||||
SDL_Delay((Uint32)SDL_min(ticksleft, 300)); /* wait awhile and try again. */
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue