Skip to content

Commit

Permalink
Quartz target shouldn't crash if an event thread is used.
Browse files Browse the repository at this point in the history
 (SDL_INIT_EVENTTHREAD still doesn't work, but the crash is gone...)
  • Loading branch information
icculus committed Jan 2, 2006
1 parent 498be47 commit 151571b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/video/quartz/SDL_QuartzEvents.m
Expand Up @@ -709,6 +709,9 @@ void QZ_PumpEvents (_THIS)
NSRect winRect;
NSAutoreleasePool *pool;

if (!SDL_VideoSurface)
return; /* don't do anything if there's no screen surface. */

/* Update activity every five seconds to prevent screensaver. --ryan. */
static Uint32 screensaverTicks = 0;
Uint32 nowTicks = SDL_GetTicks();
Expand Down

0 comments on commit 151571b

Please sign in to comment.