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 538340c76519000e
parent 5382 fd9a7a0afcbf
child 5384 93d53f8a2323
Clear the hidden flag when shown and the shown flag when hidden.
src/events/SDL_windowevents.c
     1.1 --- a/src/events/SDL_windowevents.c	Mon Feb 21 22:27:19 2011 -0800
     1.2 +++ b/src/events/SDL_windowevents.c	Mon Feb 21 22:50:15 2011 -0800
     1.3 @@ -72,6 +72,7 @@
     1.4          if (window->flags & SDL_WINDOW_SHOWN) {
     1.5              return 0;
     1.6          }
     1.7 +        window->flags &= ~SDL_WINDOW_HIDDEN;
     1.8          window->flags |= SDL_WINDOW_SHOWN;
     1.9          SDL_OnWindowShown(window);
    1.10          break;
    1.11 @@ -80,6 +81,7 @@
    1.12              return 0;
    1.13          }
    1.14          window->flags &= ~SDL_WINDOW_SHOWN;
    1.15 +        window->flags |= SDL_WINDOW_HIDDEN;
    1.16          SDL_OnWindowHidden(window);
    1.17          break;
    1.18      case SDL_WINDOWEVENT_MOVED: