The 8-bit graphical card support is required by Solaris. the original
cairo-02-8bit-support patch only considered the case while the 8 bit
color represented as index color (say Static color or Psedueo Color),
but there is
case while the 8bit color are in DirectColor (or say TrueColor). The
lack of process of this case cause the core dump in some case e.g bug
6555333.

I modified the patch to add the support of 8bit Truecolor/Directcolor
case. we do linear mapping from a 8bit color image ( 2bit blue, 3bit
green and 3bit red) to 24 bit image, which cairo can process. After
cairo finish the proces, we inverse the linear transformation to form 8
bit color image to XPutImage.

Chris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cairo-02-8bit-support.diff
Type: text/x-patch
Size: 9782 bytes
Desc: not available
URL: 
<http://mail.opensolaris.org/pipermail/jds-review/attachments/20070731/f4e58b09/attachment.bin>

Reply via email to