src/video/SDL_video.c
changeset 9546 d997877cdad7
parent 9537 ff30c198864e
child 9589 a583c42c51d7
equal deleted inserted replaced
9545:52560d9d0ceb 9546:d997877cdad7
  2053 
  2053 
  2054     if (!window->gamma) {
  2054     if (!window->gamma) {
  2055         if (SDL_GetWindowGammaRamp(window, NULL, NULL, NULL) < 0) {
  2055         if (SDL_GetWindowGammaRamp(window, NULL, NULL, NULL) < 0) {
  2056             return -1;
  2056             return -1;
  2057         }
  2057         }
       
  2058         SDL_assert(window->gamma != NULL);
  2058     }
  2059     }
  2059 
  2060 
  2060     if (red) {
  2061     if (red) {
  2061         SDL_memcpy(&window->gamma[0*256], red, 256*sizeof(Uint16));
  2062         SDL_memcpy(&window->gamma[0*256], red, 256*sizeof(Uint16));
  2062     }
  2063     }