mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-05 19:08:12 +00:00
Don't remove the resizable style for borderless windows
The application may have intended the window to be borderless and resizable
This commit is contained in:
@@ -500,7 +500,7 @@ static bool SetupWindowData(SDL_VideoDevice *_this, SDL_Window *window, HWND hwn
|
|||||||
}
|
}
|
||||||
if (style & WS_THICKFRAME) {
|
if (style & WS_THICKFRAME) {
|
||||||
window->flags |= SDL_WINDOW_RESIZABLE;
|
window->flags |= SDL_WINDOW_RESIZABLE;
|
||||||
} else {
|
} else if (!(style & WS_POPUP)) {
|
||||||
window->flags &= ~SDL_WINDOW_RESIZABLE;
|
window->flags &= ~SDL_WINDOW_RESIZABLE;
|
||||||
}
|
}
|
||||||
#ifdef WS_MAXIMIZE
|
#ifdef WS_MAXIMIZE
|
||||||
|
Reference in New Issue
Block a user