diff --git a/src/platform/timer_win.cpp b/src/platform/timer_win.cpp index c15bf0047..07650a0e1 100644 --- a/src/platform/timer_win.cpp +++ b/src/platform/timer_win.cpp @@ -23,8 +23,9 @@ uint32_t Platform::getIdleTime() { LASTINPUTINFO info = { 0 }; + info.cbSize = sizeof(info); if(GetLastInputInfo(&info)) - return info.dwTime / 1000; + return GetTickCount() - info.dwTime; return 0; }