[Win32] failed to set gamma

Started by Evil-Devil, May 11, 2005, 17:24:47

Previous topic - Next topic

Evil-Devil

Hi, when using the displayconfiguration i allways get an exception that tolds me that it fails to set the gamma value.

the gamma ramp length is outputtet as 256, but non value between 0 and 255 is applied.

Is this an internal error, or how have i to use the displayconfiguration function?

tomb

Quote from: "Evil-Devil"Hi, when using the displayconfiguration i allways get an exception that tolds me that it fails to set the gamma value.
It is very easy to get an exception if you are not careful about the values you use. It is impossible to determine what values will work without trying it, as it depends on the combination of gamma, brightness and contrast. To get you started try the following values:
gamma = 0.5f
brightness = 0f
contrast = 1f

Change the values with the keyboard to get a feel of how it works.

Quote from: "Evil-Devil"
the gamma ramp length is outputtet as 256, but non value between 0 and 255 is applied.

I don't understand. Please try again.

Evil-Devil

I mean, when i call the getGammaRampLength() in the DisplayImplementation, it returns 256 as value.

I allready tried values like the ones in your post. But it does not work either.