summaryrefslogtreecommitdiffstats
path: root/libvo/vo_quartz.c
diff options
context:
space:
mode:
Diffstat (limited to 'libvo/vo_quartz.c')
-rw-r--r--libvo/vo_quartz.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libvo/vo_quartz.c b/libvo/vo_quartz.c
index d00767c201..1e1134f3c6 100644
--- a/libvo/vo_quartz.c
+++ b/libvo/vo_quartz.c
@@ -898,7 +898,7 @@ static void draw_osd(void)
static void flip_page(void)
{
int curTime;
- static int lastTime;
+ static int lastTime = 0;
if(theWindow == NULL)
return;
@@ -984,9 +984,8 @@ static void flip_page(void)
//update activity every 30 seconds to prevent
//screensaver from starting up.
curTime = TickCount()/60;
- lastTime = 0;
- if( ((curTime/ - lastTime) >= 5) || (lastTime == 0) )
+ if( ((curTime - lastTime) >= 30) || (lastTime == 0) )
{
UpdateSystemActivity(UsrActivity);
lastTime = curTime;