You can have a borderless resizable window
This commit is contained in:
1 parent
4ca5d8622a
commit
20c5bc9135
1 file changed
+7
-3
@@ -65,10 +65,14 @@ GetWindowStyle(SDL_Window * window)
|
||||
|
||||
if (window->flags & SDL_WINDOW_FULLSCREEN) {
|
||||
style |= STYLE_FULLSCREEN;
|
||||
} else if (window->flags & SDL_WINDOW_BORDERLESS) {
|
||||
style |= STYLE_BORDERLESS;
|
||||
} else {
|
||||
style |= STYLE_NORMAL;
|
||||
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