Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Whoops, that's a while loop. :)

  • Loading branch information
slouken committed Jul 23, 2006
1 parent e60540a commit f25a60262c841402dc9ba5ed38ebfae5b5a10342
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/video/cocoa/SDL_cocoaevents.m
@@ -157,7 +157,7 @@ - (void)finishLaunching
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;

0 comments on commit f25a602

Please sign in to comment.