Almost... :)
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40385
This commit is contained in:
parent
02505be52b
commit
341008254c
1 changed files with 3 additions and 1 deletions
|
@ -392,7 +392,9 @@ int SDL_WaitEvent (SDL_Event *event)
|
||||||
|
|
||||||
int SDL_PushEvent(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)
|
void SDL_SetEventFilter (SDL_EventFilter filter)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue