summaryrefslogtreecommitdiff
path: root/xfixes/region.c
diff options
context:
space:
mode:
authorJames Cloos <cloos@jhcloos.com>2012-05-08 17:55:10 -0400
committerJames Cloos <cloos@jhcloos.com>2012-05-08 17:55:10 -0400
commitafc153a5b4fc58ae70dc214f61a71b1a8c855f06 (patch)
tree6fee7c8d01e0e5d44aded7ceb9fc71bd408ac25e /xfixes/region.c
parente501c34d4937d5e6f19abd29f1ec7f95faa3bb55 (diff)
Fix RANDR’s gamma_to_ramp().
In order to generate a 256-entry ramp in [0,65535] which covers the full range, one must mupliply eight-bit values not by 256 but rather by 257. Many years back – well before the RANDR extension was written, and before xorg@fdo – a similar bug fix was made to the DIX for converting client-supplied eight-bit color values into sixteen-bit values. Noticed by: Elle Stone and Graeme Gill. Signed-off-by: James Cloos <cloos@jhcloos.com>
Diffstat (limited to 'xfixes/region.c')
0 files changed, 0 insertions, 0 deletions