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