xrandr: fix maximum gamma set
authorEric Piel <eric@triangle.(none)>
Sat, 9 Jan 2010 23:08:53 +0000 (00:08 +0100)
committerMatthias Hopf <mhopf@suse.de>
Tue, 6 Apr 2010 17:08:59 +0000 (19:08 +0200)
commitb5627bb72b3ca2c7f5a702b7134a5c6dd4f83687
tree9a5cf4077c3ee42cdd7cd4d7fe7f664feb3e38bb
parentd138c73276226ce424d36e80ce745aa9461f110e
xrandr: fix maximum gamma set

Gamma is an array of 3 16-bit values. Currently, the maximum value assigned is
255*256, which is only 65280. Make sure that when we set the gamma, the maximum
value is 65535. It's slightly brighter but also helps to avoid kludges to
detect clamped values when reading back the gamma.

Signed-off-by: Éric Piel <eric.piel@tremplin-utc.net>
Reviewed-by: Matthias Hopf <mhopf@suse.de>
xrandr.c