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