Commit 02505be5 authored by Ryan C. Gordon's avatar Ryan C. Gordon

SDL_PushEvent() now returns values as documented.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40384
parent 89f4584a
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment