You can have a borderless resizable window
authorSam Lantinga <slouken@libsdl.org>
Wed, 06 Sep 2017 05:23:26 -0700
changeset 114608676072790f0
parent 11459 a09ca9e8938c
child 11461 a99b2e1e8791
You can have a borderless resizable window
src/video/windows/SDL_windowswindow.c
     1.1 --- a/src/video/windows/SDL_windowswindow.c	Wed Sep 06 04:32:30 2017 -0700
     1.2 +++ b/src/video/windows/SDL_windowswindow.c	Wed Sep 06 05:23:26 2017 -0700
     1.3 @@ -65,10 +65,14 @@
     1.4  
     1.5      if (window->flags & SDL_WINDOW_FULLSCREEN) {
     1.6          style |= STYLE_FULLSCREEN;
     1.7 -    } else if (window->flags & SDL_WINDOW_BORDERLESS) {
     1.8 -        style |= STYLE_BORDERLESS;
     1.9      } else {
    1.10 -        style |= STYLE_NORMAL;
    1.11 +        if (window->flags & SDL_WINDOW_BORDERLESS) {
    1.12 +            style |= STYLE_BORDERLESS;
    1.13 +        } else {
    1.14 +            style |= STYLE_NORMAL;
    1.15 +        }
    1.16 +
    1.17 +        /* You can have a borderless resizable window */
    1.18          if (window->flags & SDL_WINDOW_RESIZABLE) {
    1.19              style |= STYLE_RESIZABLE;
    1.20          }