RE : SetGamma patch coding questions

Hi Sam,
After doing some testing and getting a few other people to do some
testing using testgamma, we noticed that it leaves the screen in a red
hue after it finishes, thus requiring a reboot to reset the colours.

Does anyone else get this? Is this a feature of the demo and thus it
needs to be reset programmatically or is it a problem with the recent
fix? Sorry for these seem like silly questions.

Sincerely,

Dominique.

Sam Lantinga wrote:

Okay, I have what appears to be a fairly elegant solution for the windows
gamma ramp problem. I cheated. :slight_smile:

Go ahead and try it out in the latest CVS snapshot:
http://www.libsdl.org/cvs.html
It appears to work well for DirectX fullscreen, windowed, and
OpenGL modes.> > See ya!
-Sam Lantinga, Software Engineer, Blizzard Entertainment

Is this regarding SDL 1.2.4…? (Either way, I haven’t actually installed
1.2.4 on this machine, so I’m doing it right now.)

Hi Sam,
After doing some testing and getting a few other people to do some
testing using testgamma, we noticed that it leaves the screen in a red
hue after it finishes, thus requiring a reboot to reset the colours.

Never seen it - but then, I’ve only tested it on XFree86/Linux.

Does anyone else get this? Is this a feature of the demo and thus it
needs to be reset programmatically or is it a problem with the recent
fix? Sorry for these seem like silly questions.

Well, one would assume that the OS resets the gamma to the defaults even
if a program crashes before doing so, but that’s probably not the case.
At least, when Quake 3 crashes (doesn’t seem to like my girlfriend’s
Win98 machine, or something…), it leaves Win98 with screwed up gamma.

No reboot needed, though:

Windows:
	Just pop up the display properties, touch some gamma
	control and hit "Apply"...

XFree86:
	No idea - never needed to fiddle with it! ;-)

If that doesn’t help, it sounds to me like you have a driver problem. (I
mean, if the driver stops responding to gamma adjustments all of a
sudden…)

//David Olofson — Programmer, Reologica Instruments AB

.- M A I A -------------------------------------------------.
| Multimedia Application Integration Architecture |
| A Free/Open Source Plugin API for Professional Multimedia |
----------------------------> http://www.linuxdj.com/maia -' .- David Olofson -------------------------------------------. | Audio Hacker - Open Source Advocate - Singer - Songwriter |-------------------------------------> http://olofson.net -'On Thursday 18 April 2002 16:30, Dominique Louis wrote:

knghtbrd at galen:~$ xgamma -help
usage: xgamma [-options]

where the available options are:
-display host:dpy or -d
-quiet or -q
-screen or -s
-gamma f.f Gamma Value
-rgamma f.f Red Gamma Value
-ggamma f.f Green Gamma Value
-bgamma f.f Blue Gamma Value

If no gamma is specified, returns the current setting
knghtbrd at galen:~$ xgamma
-> Red 1.000, Green 1.000, Blue 1.000
knghtbrd at galen:~$ xgamma -gamma 2
-> Red 1.000, Green 1.000, Blue 1.000
<- Red 2.000, Green 2.000, Blue 2.000
knghtbrd at galen:~$ xgamma -gamma 1
-> Red 2.000, Green 2.000, Blue 2.000
<- Red 1.000, Green 1.000, Blue 1.000

That should help?On Thu, Apr 18, 2002 at 05:20:12PM +0200, David Olofson wrote:

XFree86:
No idea - never needed to fiddle with it! :wink:


Joseph Carter Do not write in this space

but, then I used an Atari, I was more likely to win the lottery in
ten countries simultaneously than get accelerated X

-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 273 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20020418/ba08c063/attachment.pgp