diff src/events/SDL_quit.c @ 1722:5daa04d862f1 SDL-1.3

Added a userdata parameter for event filters. Added a function to filter the existing queued events. Added explicit support for relative mouse mode to the API.
author Sam Lantinga <slouken@libsdl.org>
date Fri, 30 Jun 2006 08:18:44 +0000
parents eef792d31de8
children 875c3cf1a12c
line wrap: on
line diff
--- a/src/events/SDL_quit.c	Fri Jun 30 05:50:35 2006 +0000
+++ b/src/events/SDL_quit.c	Fri Jun 30 08:18:44 2006 +0000
@@ -88,7 +88,8 @@
     if (SDL_ProcessEvents[SDL_QUIT] == SDL_ENABLE) {
         SDL_Event event;
         event.type = SDL_QUIT;
-        if ((SDL_EventOK == NULL) || (*SDL_EventOK) (&event)) {
+        if ((SDL_EventOK == NULL)
+            || (*SDL_EventOK) (SDL_EventOKParam, &event)) {
             posted = 1;
             SDL_PushEvent(&event);
         }