[SVN] r3987 - branches/gsoc2008_iphone/src/video/uikit
svn-owner at libsdl.org
svn-owner at libsdl.org
Fri Aug 15 17:14:35 PDT 2008
Author: hfutrell
Date: 2008-08-15 17:14:35 -0700 (Fri, 15 Aug 2008)
New Revision: 3987
Modified:
branches/gsoc2008_iphone/src/video/uikit/SDL_uikitevents.m
Log:
comments and trivials
Modified: branches/gsoc2008_iphone/src/video/uikit/SDL_uikitevents.m
===================================================================
--- branches/gsoc2008_iphone/src/video/uikit/SDL_uikitevents.m 2008-08-16 00:13:42 UTC (rev 3986)
+++ branches/gsoc2008_iphone/src/video/uikit/SDL_uikitevents.m 2008-08-16 00:14:35 UTC (rev 3987)
@@ -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);
-
}
}
More information about the commits
mailing list