Re: [Pixman] [PATCH] Improve handling of tangent circles

2011-01-07 Thread Siarhei Siamashka
On Tuesday 04 January 2011 16:33:18 Andrea Canciani wrote: On Tue, Jan 4, 2011 at 11:12 AM, Andrea Canciani ranm...@gmail.com wrote: On Tue, Jan 4, 2011 at 10:59 AM, Siarhei Siamashka I just wonder if it would be difficult to add a test to pixman for this particular division by zero case?

Re: [Pixman] [PATCH] Improve handling of tangent circles

2011-01-04 Thread Andrea Canciani
On Tue, Jan 4, 2011 at 10:59 AM, Siarhei Siamashka siarhei.siamas...@gmail.com wrote: On Monday 03 January 2011 10:15:09 Andrea Canciani wrote: When b is 0, avoid the division by zero and just return transparent black. When the solution t would have an invalid radius (negative or outside

[Pixman] [PATCH] Improve handling of tangent circles

2011-01-03 Thread Andrea Canciani
When b is 0, avoid the division by zero and just return transparent black. When the solution t would have an invalid radius (negative or outside [0,1] for none-extended gradients), return transparent black. --- pixman/pixman-radial-gradient.c | 20 ++-- 1 files changed, 18