Fix divide-by-zero in set_lum().
authorSøren Sandmann Pedersen <ssp@redhat.com>
Sat, 18 Dec 2010 11:06:39 +0000 (06:06 -0500)
committerSøren Sandmann Pedersen <ssp@redhat.com>
Tue, 21 Dec 2010 00:37:11 +0000 (19:37 -0500)
commit2610323545cb5ee3dff0b7d7da505a1cd1e01b73
tree29c48a0a79de6a8a02361ad14d0c4cef3b7676bc
parent3479050216a65e3ef6e966a8e801415145261216
Fix divide-by-zero in set_lum().

When (l - min) or (max - l) are zero, simply set all the channels to
the limit, 0 in the case of (l - min), and a in the case of (max - l).
pixman/pixman-combine.c.template