[PATCH 1/1] Fix RANDR’s gamma_to_ramp().

James Cloos cloos at jhcloos.com
Tue May 8 14:54:46 PDT 2012


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 at 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 at jhcloos.com>
---
 hw/xfree86/modes/xf86RandR12.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-RANDR-s-gamma_to_ramp.patch
Type: text/x-patch
Size: 625 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20120508/71897d66/attachment.bin>


More information about the xorg-devel mailing list