Skip to content

Commit

Permalink
Updated the documentation for the SDL_PushEvent() call.
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Feb 13, 2002
1 parent 78dd621 commit e254cac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions include/SDL_events.h
Expand Up @@ -274,8 +274,8 @@ extern DECLSPEC int SDL_PollEvent(SDL_Event *event);
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);

Expand Down
2 changes: 1 addition & 1 deletion src/events/SDL_events.c
Expand Up @@ -301,7 +301,7 @@ int SDL_PeepEvents(SDL_Event *events, int numevents, SDL_eventaction action,

/* Don't look after we've quit */
if ( ! SDL_EventQ.active ) {
return(0);
return(-1);
}
/* Lock the event queue */
used = 0;
Expand Down

0 comments on commit e254cac

Please sign in to comment.