Skip to content
Permalink
Browse files

The documented error return value for SDL_WaitEvent() is 0.

  • Loading branch information
slouken committed Apr 15, 2002
1 parent c930dac commit 7c1fa60ac824b35b5738943355da42252a698216
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/events/SDL_events.c
@@ -383,7 +383,7 @@ int SDL_WaitEvent (SDL_Event *event)
while ( 1 ) {
SDL_PumpEvents();
switch(SDL_PeepEvents(event, 1, SDL_GETEVENT, SDL_ALLEVENTS)) {
case -1: return -1;
case -1: return 0;
case 1: return 1;
case 0: SDL_Delay(10);
}

0 comments on commit 7c1fa60

Please sign in to comment.