Skip to content

Commit

Permalink
SDL_PushEvent() now returns values as documented.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed May 29, 2002
1 parent 9cb265d commit b3efd8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/events/SDL_events.c
Expand Up @@ -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)
Expand Down

0 comments on commit b3efd8d

Please sign in to comment.