Skip to content

Commit

Permalink
You can have a borderless resizable window
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Sep 6, 2017
1 parent 4ca5d86 commit 20c5bc9
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/video/windows/SDL_windowswindow.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit 20c5bc9

Please sign in to comment.