# HG changeset patch # User Ryan C. Gordon # Date 1022711386 0 # Node ID 5e31d8bfffcf02f3b7efcfb2ca4eb1821a21bd4c # Parent 74bdcae44bf51bbafaccabcdfa5e327fdbee8a4a SDL_PushEvent() now returns values as documented. diff -r 74bdcae44bf5 -r 5e31d8bfffcf src/events/SDL_events.c --- a/src/events/SDL_events.c Wed May 29 20:47:19 2002 +0000 +++ b/src/events/SDL_events.c Wed May 29 22:29:46 2002 +0000 @@ -392,7 +392,7 @@ int SDL_PushEvent(SDL_Event *event) { - return(SDL_PeepEvents(event, 1, SDL_ADDEVENT, 0)); + return((SDL_PeepEvents(event, 1, SDL_ADDEVENT, 0) == 0) ? -1 : 0); } void SDL_SetEventFilter (SDL_EventFilter filter)