diff --git a/src/video/windows/SDL_windowswindow.c b/src/video/windows/SDL_windowswindow.c index f1c14926a..46db09ad5 100644 --- a/src/video/windows/SDL_windowswindow.c +++ b/src/video/windows/SDL_windowswindow.c @@ -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; }