SDL_SetGammaRamp

hi`

I suggest that we should break compatibility a bit and change the format of
SDL_SetGammaRamp to expect either integers or words instead of bytes to allow a
finer control and more precision which e.g. the Radeon offers under Windows (8.2
fixed point) -> 10 bits of precision. I guess it would be better to do that
change rather now than later.

http://msdn.microsoft.com/library/psdk/icm/icm_0yi8.htm
http://msdn.microsoft.com/library/psdk/directx/DX8_C/hh/directx8_c/_dx_setting_and_retrieving_gamma_ramp_levels_graphics.htm
http://www.ati.com/na/pages/resource_centre/dev_rel/sdk/RadeonSDK/Html/Tutorials/RadeonGamma.html

                        Daniel Vogel, Programmer, Loki Software Inc.

I suggest that we should break compatibility a bit and change the format of
SDL_SetGammaRamp to expect either integers or words instead of bytes to allow a
finer control and more precision which e.g. the Radeon offers under Windows (8.2
fixed point) -> 10 bits of precision. I guess it would be better to do that
change rather now than later.

Done. The gamma ramp functions now take Uint16 quantities instead of Uint8.
The SDL_SetGamma() interface hasn’t changed.
This actually greatly simplified the driver implementations. :slight_smile:

See ya!
-Sam Lantinga, Lead Programmer, Loki Entertainment Software