changeset 1932:dc864bcabcc4

Whoops, that's a while loop. :)
author Sam Lantinga <slouken@libsdl.org>
date Sun, 23 Jul 2006 09:16:14 +0000
parents 103c6fec2a60
children 7ee5297340f7
files src/video/cocoa/SDL_cocoaevents.m
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/video/cocoa/SDL_cocoaevents.m	Sun Jul 23 09:11:10 2006 +0000
+++ b/src/video/cocoa/SDL_cocoaevents.m	Sun Jul 23 09:16:14 2006 +0000
@@ -157,7 +157,7 @@
     NSAutoreleasePool *pool;
 
     pool = [[NSAutoreleasePool alloc] init];
-    for ( ; [NSApp isRunning]; ) {
+    while ([NSApp isRunning]) {
         NSEvent *event = [NSApp nextEventMatchingMask:NSAnyEventMask untilDate:[NSDate distantPast] inMode:NSDefaultRunLoopMode dequeue:YES ];
         if ( event == nil ) {
             break;