Remove SDL_WINDOW_SHOW flag, as redundant with SDL_WINDOW_HIDDEN

This commit is contained in:
Sylvain
2022-12-28 20:17:55 +01:00
committed by Sam Lantinga
parent 59a70d568d
commit aa46ff8f4b
14 changed files with 31 additions and 45 deletions

View File

@@ -378,9 +378,9 @@ static int SetupWindowData(_THIS, SDL_Window *window, HWND hwnd, HWND parent, SD
{
DWORD style = GetWindowLong(hwnd, GWL_STYLE);
if (style & WS_VISIBLE) {
window->flags |= SDL_WINDOW_SHOWN;
window->flags &= ~SDL_WINDOW_HIDDEN;
} else {
window->flags &= ~SDL_WINDOW_SHOWN;
window->flags |= SDL_WINDOW_HIDDEN;
}
if (style & WS_POPUP) {
window->flags |= SDL_WINDOW_BORDERLESS;