mirror of
https://github.com/mpv-player/mpv
synced 2025-04-08 18:53:30 +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();
|
unsigned int time = GetTimerMS();
|
||||||
XEvent ev;
|
XEvent ev;
|
||||||
|
|
||||||
if (mDisplay && xs_windowid &&
|
if (mDisplay && xs_windowid && (time - time_last) > 30000)
|
||||||
((time - time_last) > 30000 || (time - time_last) < 0))
|
|
||||||
{
|
{
|
||||||
time_last = time;
|
time_last = time;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user