src/video/SDL_video.c
changeset 10385 ad12658bc7ae
parent 10312 943b722a8e61
child 10491 c64e191b5518
equal deleted inserted replaced
10384:bac107c32a37 10385:ad12658bc7ae
  1835                 window->flags &= ~SDL_WINDOW_BORDERLESS;
  1835                 window->flags &= ~SDL_WINDOW_BORDERLESS;
  1836             } else {
  1836             } else {
  1837                 window->flags |= SDL_WINDOW_BORDERLESS;
  1837                 window->flags |= SDL_WINDOW_BORDERLESS;
  1838             }
  1838             }
  1839             _this->SetWindowBordered(_this, window, (SDL_bool) want);
  1839             _this->SetWindowBordered(_this, window, (SDL_bool) want);
       
  1840         }
       
  1841     }
       
  1842 }
       
  1843 
       
  1844 void
       
  1845 SDL_SetWindowResizable(SDL_Window * window, SDL_bool resizable)
       
  1846 {
       
  1847     CHECK_WINDOW_MAGIC(window,);
       
  1848     if (!(window->flags & SDL_WINDOW_FULLSCREEN)) {
       
  1849         const int want = (resizable != SDL_FALSE);  /* normalize the flag. */
       
  1850         const int have = ((window->flags & SDL_WINDOW_RESIZABLE) != 0);
       
  1851         if ((want != have) && (_this->SetWindowResizable)) {
       
  1852             if (want) {
       
  1853                 window->flags |= SDL_WINDOW_RESIZABLE;
       
  1854             } else {
       
  1855                 window->flags &= ~SDL_WINDOW_RESIZABLE;
       
  1856             }
       
  1857             _this->SetWindowResizable(_this, window, (SDL_bool) want);
  1840         }
  1858         }
  1841     }
  1859     }
  1842 }
  1860 }
  1843 
  1861 
  1844 void
  1862 void