Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Whoops, that's a while loop. :)
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jul 23, 2006
1 parent e60540a commit f25a602
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/cocoa/SDL_cocoaevents.m
Expand Up @@ -157,7 +157,7 @@ - (void)finishLaunching
NSAutoreleasePool *pool; NSAutoreleasePool *pool;


pool = [[NSAutoreleasePool alloc] init]; pool = [[NSAutoreleasePool alloc] init];
for ( ; [NSApp isRunning]; ) { while ([NSApp isRunning]) {
NSEvent *event = [NSApp nextEventMatchingMask:NSAnyEventMask untilDate:[NSDate distantPast] inMode:NSDefaultRunLoopMode dequeue:YES ]; NSEvent *event = [NSApp nextEventMatchingMask:NSAnyEventMask untilDate:[NSDate distantPast] inMode:NSDefaultRunLoopMode dequeue:YES ];
if ( event == nil ) { if ( event == nil ) {
break; break;
Expand Down

0 comments on commit f25a602

Please sign in to comment.