Fix rounding for DIV_UNc()
authorSøren Sandmann Pedersen <ssp@redhat.com>
Tue, 20 Dec 2011 11:32:26 +0000 (06:32 -0500)
committerSøren Sandmann Pedersen <ssp@redhat.com>
Mon, 9 Jan 2012 10:40:34 +0000 (05:40 -0500)
commit37572455866114cbb8bb1bf3acfb1c61d200f98c
tree145ba26bae451e0b124249557b5808f06ba5e7b2
parent2437ae80e5066dec9fe52f56b016bf136d7cea06
Fix rounding for DIV_UNc()

We need to compute floor (a/b * 255 + 0.5), not floor (a / b * 255),
so add b/2 to the numerator in the DIV_UNc() macro.
pixman/pixman-combine.h.template
test/blitters-test.c