Skip to content
Permalink
Browse files

SDL_PushEvent() now returns values as documented.

  • Loading branch information
icculus committed May 29, 2002
1 parent 9cb265d commit b3efd8dc392c9dc92ab0dec9ebcb32b8e4a82857
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/events/SDL_events.c
@@ -392,7 +392,7 @@ int SDL_WaitEvent (SDL_Event *event)

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)

0 comments on commit b3efd8d

Please sign in to comment.