windows: Fix stale zoom/iconic state in WM_WINDOWPOSCHANGED handler

- IsIconic/IsZoomed must be checked after sending SDL_EVENT_WINDOW_SHOWN as that may trigger window operations if any are pending from when
  the window was hidden. e.g. the window may be shown, which triggers SDL_MaximizeWindow and a new WM_WINDOWPOSCHANGED where
  SDL_EVENT_WINDOW_MAXIMIZED is sent, then control returns to the original WM_WINDOWPOSCHANGED which would not think the window is zoomed
  and send SDL_EVENT_WINDOW_RESTORED.
This commit is contained in:
Sam Lantinga
2025-04-25 16:21:44 -07:00
parent 14ae45c2b8
commit c2ed58db7b
2 changed files with 7 additions and 2 deletions

0
test/msdf_font.csv Executable file → Normal file
View File