Commit 34100825 authored by Sam Lantinga's avatar Sam Lantinga

Almost... :)

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40385
parent 02505be5
......@@ -392,7 +392,9 @@ int SDL_WaitEvent (SDL_Event *event)
int SDL_PushEvent(SDL_Event *event)
{
return((SDL_PeepEvents(event, 1, SDL_ADDEVENT, 0) == 0) ? -1 : 0);
if ( SDL_PeepEvents(event, 1, SDL_ADDEVENT, 0) <= 0 )
return -1;
return 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