diff options
Diffstat (limited to 'libvo/vo_quartz.c')
-rw-r--r-- | libvo/vo_quartz.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/libvo/vo_quartz.c b/libvo/vo_quartz.c index 4bc8558e63..b0d0497461 100644 --- a/libvo/vo_quartz.c +++ b/libvo/vo_quartz.c @@ -888,21 +888,6 @@ static void check_events(void) SendEventToEventTarget (theEvent, theTarget); ReleaseEvent(theEvent); } - - //update activity every 30 seconds to prevent - //screensaver from starting up. - DateTimeRec d; - unsigned long curTime; - static unsigned long lastTime = 0; - - GetTime(&d); - DateToSeconds( &d, &curTime); - - if( ( (curTime - lastTime) >= 30) || (lastTime == 0)) - { - UpdateSystemActivity(UsrActivity); - lastTime = curTime; - } } static void draw_osd(void) @@ -996,6 +981,21 @@ static void flip_page(void) lastTime = curTime; } } + + //update activity every 30 seconds to prevent + //screensaver from starting up. + DateTimeRec d; + unsigned long curTime; + static unsigned long lastTime = 0; + + GetTime(&d); + DateToSeconds( &d, &curTime); + + if( ( (curTime - lastTime) >= 30) || (lastTime == 0)) + { + UpdateSystemActivity(UsrActivity); + lastTime = curTime; + } } static int draw_slice(uint8_t *src[], int stride[], int w,int h,int x,int y) |