[cairo] [Patch] make _color_to_short() use
behdad at behdad.org
Wed Jan 24 09:28:36 PST 2007
On Wed, 2007-01-24 at 19:09 +0200, Jorn Baayen wrote:
> As we are talking 16 bits of relevant data, I was thinking that
> we round or floor is of little importance (rounding strikes me as more
> 'right' though, personally). Anyway, as this patch has no measurable
> performance impact it probably isn't worth dwelling here much longer.
While the performance impact is ignorable, please take a minute and
think about it and convince yourself that floor is right. Think about
the input and output spaces and how to map evenly.
"Those who would give up Essential Liberty to purchase a little
Temporary Safety, deserve neither Liberty nor Safety."
-- Benjamin Franklin, 1759
More information about the cairo