Mercurial > sdl-ios-xcode
changeset 1213:8eb191652834
Quartz target shouldn't crash if an event thread is used.
(SDL_INIT_EVENTTHREAD still doesn't work, but the crash is gone...)
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Mon, 02 Jan 2006 07:09:52 +0000 |
parents | 7663bb0f52c7 |
children | 31103dbf1c26 |
files | src/video/quartz/SDL_QuartzEvents.m |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/video/quartz/SDL_QuartzEvents.m Mon Jan 02 00:31:00 2006 +0000 +++ b/src/video/quartz/SDL_QuartzEvents.m Mon Jan 02 07:09:52 2006 +0000 @@ -709,6 +709,9 @@ 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();