Filter out SDL_WINDOWEVENT_SIZE_CHANGED events too
authorSam Lantinga <slouken@libsdl.org>
Mon, 28 Mar 2011 23:44:51 -0700
changeset 5524 b7f53a566ef1
parent 5523 6dc03727fadc
child 5525 e427bb6266a4
Filter out SDL_WINDOWEVENT_SIZE_CHANGED events too
src/events/SDL_windowevents.c
--- a/src/events/SDL_windowevents.c	Mon Mar 28 20:56:28 2011 -0700
+++ b/src/events/SDL_windowevents.c	Mon Mar 28 23:44:51 2011 -0700
@@ -170,7 +170,8 @@
         event.window.windowID = window->id;
 
         /* Fixes queue overflow with resize events that aren't processed */
-        if (windowevent == SDL_WINDOWEVENT_RESIZED) {
+        if (windowevent == SDL_WINDOWEVENT_RESIZED ||
+            windowevent == SDL_WINDOWEVENT_SIZE_CHANGED) &&
             SDL_FilterEvents(RemovePendingSizeEvents, &event);
         }
         if (windowevent == SDL_WINDOWEVENT_MOVED) {