From 34974d4d2b59cfd1b1fbceb578976dfa77a9bd24 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Sat, 21 Dec 2024 08:18:55 -0800
Subject: [PATCH] Don't remove the resizable style for borderless windows
The application may have intended the window to be borderless and resizable
---
src/video/windows/SDL_windowswindow.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/video/windows/SDL_windowswindow.c b/src/video/windows/SDL_windowswindow.c
index a5bb0adbd692e..bceccc7a74c00 100644
--- a/src/video/windows/SDL_windowswindow.c
+++ b/src/video/windows/SDL_windowswindow.c
@@ -500,7 +500,7 @@ static bool SetupWindowData(SDL_VideoDevice *_this, SDL_Window *window, HWND hwn
}
if (style & WS_THICKFRAME) {
window->flags |= SDL_WINDOW_RESIZABLE;
- } else {
+ } else if (!(style & WS_POPUP)) {
window->flags &= ~SDL_WINDOW_RESIZABLE;
}
#ifdef WS_MAXIMIZE