src/video/quartz/SDL_QuartzEvents.m
branchSDL-1.2
changeset 3936 c5c3c772f5aa
parent 3922 4e02435ad2be
child 3952 e3c28caea46d
     1.1 --- a/src/video/quartz/SDL_QuartzEvents.m	Wed Apr 04 10:34:42 2007 +0000
     1.2 +++ b/src/video/quartz/SDL_QuartzEvents.m	Fri Apr 06 20:30:41 2007 +0000
     1.3 @@ -734,11 +734,13 @@
     1.4          return;  /* don't do anything if there's no screen surface. */
     1.5  
     1.6      /* Update activity every five seconds to prevent screensaver. --ryan. */
     1.7 -    nowTicks = SDL_GetTicks();
     1.8 -    if ((nowTicks - screensaverTicks) > 5000)
     1.9 -    {
    1.10 -        UpdateSystemActivity(UsrActivity);
    1.11 -        screensaverTicks = nowTicks;
    1.12 +    if (!allow_screensaver) {
    1.13 +        nowTicks = SDL_GetTicks();
    1.14 +        if ((nowTicks - screensaverTicks) > 5000)
    1.15 +        {
    1.16 +            UpdateSystemActivity(UsrActivity);
    1.17 +            screensaverTicks = nowTicks;
    1.18 +        }
    1.19      }
    1.20  
    1.21      pool = [ [ NSAutoreleasePool alloc ] init ];