src/video/SDL_video.c
changeset 6422 fd0ac1b56115
parent 6419 b75e82af5ef1
child 6496 d7cb947898d7
     1.1 --- a/src/video/SDL_video.c	Thu Sep 13 01:29:18 2012 -0400
     1.2 +++ b/src/video/SDL_video.c	Thu Sep 13 01:43:53 2012 -0400
     1.3 @@ -1491,6 +1491,24 @@
     1.4  }
     1.5  
     1.6  void
     1.7 +SDL_SetWindowBordered(SDL_Window * window, SDL_bool bordered)
     1.8 +{
     1.9 +    CHECK_WINDOW_MAGIC(window, );
    1.10 +    if (!(window->flags & SDL_WINDOW_FULLSCREEN)) {
    1.11 +        const int want = (bordered != SDL_FALSE);  /* normalize the flag. */
    1.12 +        const int have = ((window->flags & SDL_WINDOW_BORDERLESS) == 0);
    1.13 +        if ((want != have) && (_this->SetWindowBordered)) {
    1.14 +            if (want) {
    1.15 +                window->flags &= ~SDL_WINDOW_BORDERLESS;
    1.16 +            } else {
    1.17 +                window->flags |= SDL_WINDOW_BORDERLESS;
    1.18 +            }
    1.19 +            _this->SetWindowBordered(_this, window, (SDL_bool) want);
    1.20 +        }
    1.21 +    }
    1.22 +}
    1.23 +
    1.24 +void
    1.25  SDL_SetWindowSize(SDL_Window * window, int w, int h)
    1.26  {
    1.27      CHECK_WINDOW_MAGIC(window, );