src/video/quartz/SDL_QuartzEvents.m
changeset 1213 8eb191652834
parent 1212 7663bb0f52c7
child 1338 604d73db6802
     1.1 --- a/src/video/quartz/SDL_QuartzEvents.m	Mon Jan 02 00:31:00 2006 +0000
     1.2 +++ b/src/video/quartz/SDL_QuartzEvents.m	Mon Jan 02 07:09:52 2006 +0000
     1.3 @@ -709,6 +709,9 @@
     1.4      NSRect winRect;
     1.5      NSAutoreleasePool *pool;
     1.6  
     1.7 +    if (!SDL_VideoSurface)
     1.8 +        return;  /* don't do anything if there's no screen surface. */
     1.9 +
    1.10      /* Update activity every five seconds to prevent screensaver. --ryan. */
    1.11      static Uint32 screensaverTicks = 0;
    1.12      Uint32 nowTicks = SDL_GetTicks();