Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Clear the hidden flag when shown and the shown flag when hidden.

  • Loading branch information
slouken committed Feb 22, 2011
1 parent 8ea0b21 commit 0b3658c047bbdc91949af62eb930c1aaaa88fcfd
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/events/SDL_windowevents.c
@@ -72,6 +72,7 @@ SDL_SendWindowEvent(SDL_Window * window, Uint8 windowevent, int data1,
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 @@ SDL_SendWindowEvent(SDL_Window * window, Uint8 windowevent, int data1,
return 0;
}
window->flags &= ~SDL_WINDOW_SHOWN;
window->flags |= SDL_WINDOW_HIDDEN;
SDL_OnWindowHidden(window);
break;
case SDL_WINDOWEVENT_MOVED:

0 comments on commit 0b3658c

Please sign in to comment.