sdl2-compat: SDL2 windows are automatically shown unless SDL_WINDOW_HIDDEN is set

From 29a5d361aff1ecb18e1e58df3dd8d10179730e47 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Tue, 9 Jan 2024 07:01:40 -0800
Subject: [PATCH] SDL2 windows are automatically shown unless SDL_WINDOW_HIDDEN
 is set

This is the SDL3 behavior as well, so we don't need to do any flag translation for the hidden/shown window flags

Fixes mouse_getMouseFocus in testautomation
---
 src/sdl2_compat.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/src/sdl2_compat.c b/src/sdl2_compat.c
index 08c531e..b81a7f6 100644
--- a/src/sdl2_compat.c
+++ b/src/sdl2_compat.c
@@ -5964,12 +5964,6 @@ SDL_CreateWindow(const char *title, int x, int y, int w, int h, Uint32 flags)
     SDL_Window *window = NULL;
     const Uint32 is_popup = flags & (SDL_WINDOW_POPUP_MENU | SDL_WINDOW_TOOLTIP);
 
-    /* SDL3 windows are shown by default */
-    if (flags & SDL2_WINDOW_SHOWN) {
-        flags &= ~(SDL2_WINDOW_SHOWN | SDL_WINDOW_HIDDEN);
-    } else {
-        flags |= SDL_WINDOW_HIDDEN;
-    }
     if (flags & SDL2_WINDOW_FULLSCREEN_DESKTOP) {
         flags &= ~SDL2_WINDOW_FULLSCREEN_DESKTOP;
         flags |= SDL_WINDOW_FULLSCREEN; /* This is fullscreen desktop for new windows */