[cairo] _cairo_color_compute_shorts fails with FPU set to single precision

Behdad Esfahbod behdad at behdad.org
Wed Aug 30 12:10:59 PDT 2006

On Wed, 2006-08-30 at 14:38 -0400, James Cloos wrote:

> HDR values should never be illegal input; they should just be clipped
> via a saturating float->int conversion when displayed or written to
> non-hdr file formats.

That requires an internal format with more precision than the current
ARGB32.  Would be interesting.

To start with HDR, we can clamp after multiplying by alpha.  That will
make something like cairo_set_source_rgba (cr, 2, 2, 2, 0.5) do
something different...

> -JimC

"Commandment Three says Do Not Kill, Amendment Two says Blood Will Spill"
        -- Dan Bern, "New American Language"

More information about the cairo mailing list