1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Fixed getIdleTime() on windows

This commit is contained in:
novist 2014-12-02 15:33:53 +02:00
parent 1c78cbc0c9
commit a6f3f5f169

View File

@ -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;
}