private SetGamma ( ushort red, ushort green, ushort blue ) : void | ||
red | ushort | |
green | ushort | |
blue | ushort | |
return | void |
private void SetGamma(ushort[] red, ushort[] green, ushort[] blue)
{
ushort[,] table = new ushort[3, 256];
for(int i = 0; i < 256; i++)
{
table[0, i] = red[i];
table[1, i] = green[i];
table[2, i] = blue[i];
}
idConsole.Warning("TODO: SetDeviceGammaRamp");
/*if ( !SetDeviceGammaRamp( win32.hDC, table ) ) {
common->Printf( "WARNING: SetDeviceGammaRamp failed.\n" );
}*/
}