[MPlayer-cvslog] r24981 - trunk/libvo/vo_macosx.m
ulion
subversion at mplayerhq.hu
Tue Nov 6 13:40:04 CET 2007
Author: ulion
Date: Tue Nov 6 13:40:04 2007
New Revision: 24981
Log:
Fix the prevent system idle code. Original code also work, but not as expected.
The update function was always called, it should be once per 30 seconds.
Modified:
trunk/libvo/vo_macosx.m
Modified: trunk/libvo/vo_macosx.m
==============================================================================
--- trunk/libvo/vo_macosx.m (original)
+++ trunk/libvo/vo_macosx.m Tue Nov 6 13:40:04 2007
@@ -664,7 +664,7 @@ static int control(uint32_t request, voi
- (void) render
{
int curTime;
- static int lastTime;
+ static int lastTime = 0;
glClear(GL_COLOR_BUFFER_BIT);
@@ -722,7 +722,6 @@ static int control(uint32_t request, voi
//update activity every 30 seconds to prevent
//screensaver from starting up.
curTime = TickCount()/60;
- lastTime = 0;
if( ((curTime - lastTime) >= 30) || (lastTime == 0) )
{
More information about the MPlayer-cvslog
mailing list