diff src/events/SDL_events.c @ 353:d47637068e52

The documented error return value for SDL_WaitEvent() is 0.
author Sam Lantinga <slouken@libsdl.org>
date Mon, 15 Apr 2002 04:53:41 +0000
parents b49fc922e7f6
children 5e31d8bfffcf
line wrap: on
line diff
--- a/src/events/SDL_events.c	Mon Apr 15 04:51:26 2002 +0000
+++ b/src/events/SDL_events.c	Mon Apr 15 04:53:41 2002 +0000
@@ -383,7 +383,7 @@
 	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);
 		}