diff 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
line wrap: on
line diff
--- a/src/events/SDL_quit.c	Sat Jul 08 18:06:02 2006 +0000
+++ b/src/events/SDL_quit.c	Sat Jul 08 20:07:08 2006 +0000
@@ -88,11 +88,7 @@
     if (SDL_ProcessEvents[SDL_QUIT] == SDL_ENABLE) {
         SDL_Event event;
         event.type = SDL_QUIT;
-        if ((SDL_EventOK == NULL)
-            || (*SDL_EventOK) (SDL_EventOKParam, &event)) {
-            posted = 1;
-            SDL_PushEvent(&event);
-        }
+        posted = (SDL_PushEvent(&event) > 0);
     }
     return (posted);
 }