mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2025-01-22 01:57:18 +01:00
You can have a borderless resizable window
This commit is contained in:
parent
4ca5d8622a
commit
20c5bc9135
@ -65,10 +65,14 @@ GetWindowStyle(SDL_Window * window)
|
|||||||
|
|
||||||
if (window->flags & SDL_WINDOW_FULLSCREEN) {
|
if (window->flags & SDL_WINDOW_FULLSCREEN) {
|
||||||
style |= STYLE_FULLSCREEN;
|
style |= STYLE_FULLSCREEN;
|
||||||
} else if (window->flags & SDL_WINDOW_BORDERLESS) {
|
} else {
|
||||||
|
if (window->flags & SDL_WINDOW_BORDERLESS) {
|
||||||
style |= STYLE_BORDERLESS;
|
style |= STYLE_BORDERLESS;
|
||||||
} else {
|
} else {
|
||||||
style |= STYLE_NORMAL;
|
style |= STYLE_NORMAL;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* You can have a borderless resizable window */
|
||||||
if (window->flags & SDL_WINDOW_RESIZABLE) {
|
if (window->flags & SDL_WINDOW_RESIZABLE) {
|
||||||
style |= STYLE_RESIZABLE;
|
style |= STYLE_RESIZABLE;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user