Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
SDL_PushEvent() now returns values as documented.
- Loading branch information
Showing
with
1 addition
and
1 deletion.
-
+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) |
|
|