Mercurial > sdl-ios-xcode
comparison src/events/SDL_quit.c @ 1731:875c3cf1a12c SDL-1.3
SDL_PushEvent() calls the event filter code, and has a return value to tell
whether or not the event was actually pushed.
SDL_GetEventFilter() now returns an SDL_bool instead of the filter function.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 08 Jul 2006 20:07:08 +0000 |
parents | 5daa04d862f1 |
children |
comparison
equal
deleted
inserted
replaced
1730:e70477157db9 | 1731:875c3cf1a12c |
---|---|
86 | 86 |
87 posted = 0; | 87 posted = 0; |
88 if (SDL_ProcessEvents[SDL_QUIT] == SDL_ENABLE) { | 88 if (SDL_ProcessEvents[SDL_QUIT] == SDL_ENABLE) { |
89 SDL_Event event; | 89 SDL_Event event; |
90 event.type = SDL_QUIT; | 90 event.type = SDL_QUIT; |
91 if ((SDL_EventOK == NULL) | 91 posted = (SDL_PushEvent(&event) > 0); |
92 || (*SDL_EventOK) (SDL_EventOKParam, &event)) { | |
93 posted = 1; | |
94 SDL_PushEvent(&event); | |
95 } | |
96 } | 92 } |
97 return (posted); | 93 return (posted); |
98 } | 94 } |
99 | 95 |
100 /* vi: set ts=4 sw=4 expandtab: */ | 96 /* vi: set ts=4 sw=4 expandtab: */ |