src/video/SDL_video.c
changeset 5480 55a687c55676
parent 5479 5c4635640bf9
child 5535 96594ac5fd1a
equal deleted inserted replaced
5479:5c4635640bf9 5480:55a687c55676
  1883 {
  1883 {
  1884     if (window->gamma && _this->SetWindowGammaRamp) {
  1884     if (window->gamma && _this->SetWindowGammaRamp) {
  1885         _this->SetWindowGammaRamp(_this, window, window->gamma);
  1885         _this->SetWindowGammaRamp(_this, window, window->gamma);
  1886     }
  1886     }
  1887 
  1887 
  1888     if ((window->flags & SDL_WINDOW_INPUT_GRABBED | SDL_WINDOW_FULLSCREEN) &&
  1888     if ((window->flags & (SDL_WINDOW_INPUT_GRABBED | SDL_WINDOW_FULLSCREEN)) &&
  1889         _this->SetWindowGrab) {
  1889         _this->SetWindowGrab) {
  1890         _this->SetWindowGrab(_this, window);
  1890         _this->SetWindowGrab(_this, window);
  1891     }
  1891     }
  1892 }
  1892 }
  1893 
  1893 
  1896 {
  1896 {
  1897     if (window->gamma && _this->SetWindowGammaRamp) {
  1897     if (window->gamma && _this->SetWindowGammaRamp) {
  1898         _this->SetWindowGammaRamp(_this, window, window->saved_gamma);
  1898         _this->SetWindowGammaRamp(_this, window, window->saved_gamma);
  1899     }
  1899     }
  1900 
  1900 
  1901     if ((window->flags & SDL_WINDOW_INPUT_GRABBED | SDL_WINDOW_FULLSCREEN) &&
  1901     if ((window->flags & (SDL_WINDOW_INPUT_GRABBED | SDL_WINDOW_FULLSCREEN)) &&
  1902         _this->SetWindowGrab) {
  1902         _this->SetWindowGrab) {
  1903         _this->SetWindowGrab(_this, window);
  1903         _this->SetWindowGrab(_this, window);
  1904     }
  1904     }
  1905 
  1905 
  1906     /* If we're fullscreen on a single-head system and lose focus, minimize */
  1906     /* If we're fullscreen on a single-head system and lose focus, minimize */