Skip to content
Permalink
Browse files

Quartz target shouldn't crash if an event thread is used.

 (SDL_INIT_EVENTTHREAD still doesn't work, but the crash is gone...)
  • Loading branch information
icculus committed Jan 2, 2006
1 parent 498be47 commit 151571bbe4823ba955f9b617e970ed075a49927c
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/video/quartz/SDL_QuartzEvents.m
@@ -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();

0 comments on commit 151571b

Please sign in to comment.