RE: [GD-Windows] GetDeviceGammaRamp() is lieing to me
Brought to you by:
vexxed72
From: Jon W. <hp...@mi...> - 2002-12-06 19:29:04
|
I previously asked: > WORD userRamp[ 768 ]; > HDC dc = CreateDC( "DISPLAY", 0, 0, 0 ); > GetDeviceGammaRamp( dc, userRamp ); > /* I'm not getting the actual ramp in effect here, but > * instead some Ersatz default ramp. */ Could it be that graphics cards somehow recognize our app as a "game" and purposefully lie to us about the current gamma settings, such that they can apply a special "game gamma" setting? If so, why does the operation of restoring the gamma (using data we initially read) go through to set the ramp (which is darker) and leave it like that when we quit? (we do restore in an atexit() handler). Cheers, / h+ |