comparison src/events/SDL_windowevents.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 6c63fc2bd986
children 0b1070f2f94d
comparison
equal deleted inserted replaced
1730:e70477157db9 1731:875c3cf1a12c
112 event.type = SDL_WINDOWEVENT; 112 event.type = SDL_WINDOWEVENT;
113 event.window.event = windowevent; 113 event.window.event = windowevent;
114 event.window.data1 = data1; 114 event.window.data1 = data1;
115 event.window.data2 = data2; 115 event.window.data2 = data2;
116 event.window.windowID = windowID; 116 event.window.windowID = windowID;
117 if ((SDL_EventOK == NULL) 117 posted = (SDL_PushEvent(&event) > 0);
118 || (*SDL_EventOK) (SDL_EventOKParam, &event)) {
119 posted = 1;
120 SDL_PushEvent(&event);
121 }
122 } 118 }
123 return (posted); 119 return (posted);
124 } 120 }
125 121
126 /* vi: set ts=4 sw=4 expandtab: */ 122 /* vi: set ts=4 sw=4 expandtab: */