[cairo] _cairo_color_compute_shorts fails with FPU set to single precision

Bill Spitzak spitzak at d2.com
Tue Aug 29 23:20:49 PDT 2006

My recommedation is to add an api to Cairo to set a color from 8-bit 
values. There is a VAST amount of color data in this form, and users are 
very interested in getting EXACTLY the same number on the screen.

If this is not done, people will just second guess the float->byte 
algorithim and run it backwards to get colors that match the color they 
want. This really is a waste of time and it also means that anything you 
decide here will be fixed forever, because any changes, even tiny ones, 
will break people's reverse-engineered 8-bit converters.

There is no need for 16 bits or any other color data except 8-bit and float.

Carl Worth wrote:
> On Sat, 15 Jul 2006 21:58:23 -0400, Behdad Esfahbod wrote:
>> There's this bug:
>>   https://bugs.freedesktop.org/show_bug.cgi?id=7497
>> Carl likes to see discussion on the list about it before we make any
>> change.  So, bithackers please comment.

More information about the cairo mailing list