Clear the hidden flag when shown and the shown flag when hidden.
authorSam Lantinga <slouken@libsdl.org>
Mon, 21 Feb 2011 22:50:15 -0800
changeset 5383 40c76519000e
parent 5382 fd9a7a0afcbf
child 5384 93d53f8a2323
Clear the hidden flag when shown and the shown flag when hidden.
src/events/SDL_windowevents.c
--- a/src/events/SDL_windowevents.c	Mon Feb 21 22:27:19 2011 -0800
+++ b/src/events/SDL_windowevents.c	Mon Feb 21 22:50:15 2011 -0800
@@ -72,6 +72,7 @@
         if (window->flags & SDL_WINDOW_SHOWN) {
             return 0;
         }
+        window->flags &= ~SDL_WINDOW_HIDDEN;
         window->flags |= SDL_WINDOW_SHOWN;
         SDL_OnWindowShown(window);
         break;
@@ -80,6 +81,7 @@
             return 0;
         }
         window->flags &= ~SDL_WINDOW_SHOWN;
+        window->flags |= SDL_WINDOW_HIDDEN;
         SDL_OnWindowHidden(window);
         break;
     case SDL_WINDOWEVENT_MOVED: