mirror of
https://github.com/encounter/SDL.git
synced 2025-12-08 13:15:10 +00:00
You can have a borderless resizable window
This commit is contained in:
@@ -65,10 +65,14 @@ GetWindowStyle(SDL_Window * window)
|
||||
|
||||
if (window->flags & SDL_WINDOW_FULLSCREEN) {
|
||||
style |= STYLE_FULLSCREEN;
|
||||
} else if (window->flags & SDL_WINDOW_BORDERLESS) {
|
||||
} else {
|
||||
if (window->flags & SDL_WINDOW_BORDERLESS) {
|
||||
style |= STYLE_BORDERLESS;
|
||||
} else {
|
||||
style |= STYLE_NORMAL;
|
||||
}
|
||||
|
||||
/* You can have a borderless resizable window */
|
||||
if (window->flags & SDL_WINDOW_RESIZABLE) {
|
||||
style |= STYLE_RESIZABLE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user