src/events/SDL_windowevents.c
branchSDL-1.3
changeset 1731 875c3cf1a12c
parent 1724 6c63fc2bd986
child 1733 0b1070f2f94d
--- a/src/events/SDL_windowevents.c	Sat Jul 08 18:06:02 2006 +0000
+++ b/src/events/SDL_windowevents.c	Sat Jul 08 20:07:08 2006 +0000
@@ -114,11 +114,7 @@
         event.window.data1 = data1;
         event.window.data2 = data2;
         event.window.windowID = windowID;
-        if ((SDL_EventOK == NULL)
-            || (*SDL_EventOK) (SDL_EventOKParam, &event)) {
-            posted = 1;
-            SDL_PushEvent(&event);
-        }
+        posted = (SDL_PushEvent(&event) > 0);
     }
     return (posted);
 }