LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: Evil-Devil on May 11, 2005, 17:24:47

Title: [Win32] failed to set gamma
Post by: Evil-Devil on May 11, 2005, 17:24:47
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?
Title: Re: [Win32] failed to set gamma
Post by: tomb on May 11, 2005, 19:20:56
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.
Title: [Win32] failed to set gamma
Post by: Evil-Devil on May 13, 2005, 16:59:38
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.