mirror of
https://github.com/mpv-player/mpv
synced 2025-03-19 18:05:21 +00: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:
parent
7beaed2627
commit
97bd024609
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user