mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-23 19:38:51 +08:00
Simplify condition, since both time and time_last are unsigned.
Patch by Rich Felker. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18486 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
+1
-2
@@ -1597,8 +1597,7 @@ void xscreensaver_heartbeat(void)
|
||||
unsigned int time = GetTimerMS();
|
||||
XEvent ev;
|
||||
|
||||
if (mDisplay && xs_windowid &&
|
||||
((time - time_last) > 30000 || (time - time_last) < 0))
|
||||
if (mDisplay && xs_windowid && (time - time_last) > 30000)
|
||||
{
|
||||
time_last = time;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user