Commit b4270503 authored by Ryan C. Gordon's avatar Ryan C. Gordon

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

 (SDL_INIT_EVENTTHREAD still doesn't work, but the crash is gone...)

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401216
parent 53c1e9d0
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment