SDL_CalculateGammaRamp() - end of SDL_pixels.h