Mercurial > sdl-ios-xcode
diff src/video/uikit/SDL_uikitevents.m @ 2449:4a07dc228e93 gsoc2008_iphone
comments and trivials
author | Holmes Futrell <hfutrell@umail.ucsb.edu> |
---|---|
date | Sat, 16 Aug 2008 00:14:35 +0000 |
parents | 491958a6c881 |
children |
line wrap: on
line diff
--- a/src/video/uikit/SDL_uikitevents.m Sat Aug 16 00:13:42 2008 +0000 +++ b/src/video/uikit/SDL_uikitevents.m Sat Aug 16 00:14:35 2008 +0000 @@ -21,9 +21,6 @@ */ #include "SDL_config.h" -/* Being a null driver, there's no event stream. We just define stubs for - most of the API. */ - #include "SDL.h" #include "../../events/SDL_sysevents.h" #include "../../events/SDL_events_c.h" @@ -32,7 +29,7 @@ #include "SDL_uikitevents.h" #import <Foundation/Foundation.h> -#include "jump.h" +#include "jumphack.h" void UIKit_PumpEvents(_THIS) @@ -47,17 +44,13 @@ So what we do is that in the UIApplicationDelegate class (SDLUIApplicationDelegate), when the delegate receives the ApplicationWillTerminate message, we execute a longjmp statement to get back here, preventing an immediate exit. - */ - if (setjmp(*jump_env()) != 0) { - //NSLog(@"Bam! We're back"); - } - else { + if (setjmp(*jump_env()) == 0) { + /* if we're setting the jump, rather than jumping back */ SInt32 result; do { result = CFRunLoopRunInMode(kCFRunLoopDefaultMode, 0, TRUE); } while(result == kCFRunLoopRunHandledSource); - } }