engine: platform: sdl: set requested timer delay in units of 100ns according to the documentation

This commit is contained in:
Alibek Omarov
2025-02-15 13:08:02 +03:00
parent af6b434b71
commit 7ba2209124

View File

@@ -79,11 +79,13 @@ void Win32_Shutdown( void )
qboolean Win32_NanoSleep( int nsec )
{
const LARGE_INTEGER ts = { -nsec };
LARGE_INTEGER ts;
if( !g_waitable_timer )
return false;
ts.QuadPart = { -nsec / 100 };
if( !SetWaitableTimer( g_waitable_timer, &ts, 0, NULL, NULL, FALSE ))
{
CloseHandle( g_waitable_timer );