From 97bd024609ad41b60f3732aa2bdcf46ef06e1478 Mon Sep 17 00:00:00 2001 From: rathann Date: Sat, 13 May 2006 18:34:02 +0000 Subject: 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 --- libvo/x11_common.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libvo/x11_common.c') diff --git a/libvo/x11_common.c b/libvo/x11_common.c index 96cdc05b39..6a522bfda8 100644 --- a/libvo/x11_common.c +++ b/libvo/x11_common.c @@ -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; -- cgit v1.2.3