engine/video_sdlwindow.c
/*	Set the gamma level.
	Based on Darkplaces implementation.
*/
Set the gamma level.
Based on Darkplaces implementation.
Set the gamma level . Based on Darkplaces implementation .
void Window_SetGamma(unsigned short *usRamp, int iRampSize)
{
	if (!SDL_SetWindowGammaRamp(sMainWindow, usRamp, usRamp + iRampSize, usRamp + iRampSize * 2))
		Con_Warning("Failed to set gamma level!\n%s", SDL_GetError());
}
void Window_SetGamma ( unsigned short * usRamp , int iRampSize ) { if ( ! SDL_SetWindowGammaRamp ( sMainWindow , usRamp , usRamp + iRampSize , usRamp + iRampSize * 2 ) ) Con_Warning ( " \n " , SDL_GetError ( ) ) ; }
Set the gamma level.
Set the gamma level .