changeset 276:8af85680ca0a

Updated the documentation for the SDL_PushEvent() call.
author Sam Lantinga <slouken@libsdl.org>
date Wed, 13 Feb 2002 23:40:13 +0000
parents 53fc686e9428
children 255c7ee077cb
files include/SDL_events.h src/events/SDL_events.c
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/include/SDL_events.h	Wed Feb 13 18:21:48 2002 +0000
+++ b/include/SDL_events.h	Wed Feb 13 23:40:13 2002 +0000
@@ -274,8 +274,8 @@
 extern DECLSPEC int SDL_WaitEvent(SDL_Event *event);
 
 /* Add an event to the event queue.
-   This function returns 0, or -1 if the event couldn't be added to
-   the event queue.  If the event queue is full, this function fails.
+   This function returns 0 if the event queue was full, or -1
+   if there was some other error.  Returns 1 on success.
  */
 extern DECLSPEC int SDL_PushEvent(SDL_Event *event);
 
--- a/src/events/SDL_events.c	Wed Feb 13 18:21:48 2002 +0000
+++ b/src/events/SDL_events.c	Wed Feb 13 23:40:13 2002 +0000
@@ -301,7 +301,7 @@
 
 	/* Don't look after we've quit */
 	if ( ! SDL_EventQ.active ) {
-		return(0);
+		return(-1);
 	}
 	/* Lock the event queue */
 	used = 0;