[PATCH 3/3] xrandr: compute gamma-correction in [0,2^sigbits)

2012-08-24 Thread Andy Ritger
The gamma-correction lookup table values are 16:16:16 X Colors, where the MSBs are programmed into the hardware lookup table. Rather than compute values over the entire range [0,65536) (where values below 2^(16 - sigbits) will receive the same hardware value), compute values over the range

[PATCH 3/3] xrandr: compute gamma-correction in [0,2^sigbits)

2012-08-13 Thread Andy Ritger
The gamma-correction lookup table values are 16:16:16 X Colors, where the MSBs are programmed into the hardware lookup table. Rather than compute values over the entire range [0,65536) (where values below 2^(16 - sigbits) will receive the same hardware value), compute values over the range