Improve precision of linear gradients
authorAndrea Canciani <ranma42@gmail.com>
Wed, 11 Aug 2010 07:58:05 +0000 (09:58 +0200)
committerAndrea Canciani <ranma42@gmail.com>
Mon, 18 Oct 2010 20:43:24 +0000 (22:43 +0200)
commit1d4f2d71facd5f2bbce74fbe3407ccea6cf4bea1
tree4195dfdda9c26eafe65bba1c984bddbf33e94f30
parentf6ab20ca6604739b82311fc078d6ce850f43adc0
Improve precision of linear gradients

Integer division (without keeping the remainder) can discard a lot
of information. Doing the division maths in floating point (and
paying attention to error propagation) allows to greatly improve
the precision of linear gradients.
pixman/pixman-linear-gradient.c