Commit f74f81f0 authored by Руслан Ижбулатов's avatar Руслан Ижбулатов
Browse files
parent 83eb36a8
......@@ -178,7 +178,9 @@ _gdk_win32_get_next_tick (gulong suggested_tick)
if (suggested_tick == 0)
suggested_tick = GetTickCount ();
if (suggested_tick <= cur_tick)
/* Ticks eventually wrap around.
* This works as long as the interval between ticks is < 2147483648ms */
if (suggested_tick <= cur_tick && ((cur_tick - suggested_tick) < 0x7FFFFFFF))
return cur_tick;
else
return cur_tick = suggested_tick;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment