[cairo-bugs] [Bug 40918] Radial gradients misrendered if focus is exactly on the outer circle

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Sep 16 11:53:23 PDT 2011


--- Comment #6 from Krzysztof Kosiński <tweenk.pl at gmail.com> 2011-09-16 11:53:21 PDT ---
(In reply to comment #3)
> In order to get consistent results ad to be able to follow the SVG
> specification you probably want to render it using CAIRO_EXTEND_NONE or you
> could cheat a little bit and move the focus slightly inside.
> (I would rather go for CAIRO_EXTEND_NONE, but it's probably much more work
> because you might have to recompute the big circle and the color stops)

I'm not sure if I understood that but using CAIRO_EXTEND_NONE would mean I'd
have to paint the shape twice: once to give it the outer color of the gradient
and the second time to actually paint the gradient. And on top of that the
inner part (e.g. the red circle) could still disappear.

The main reason I'm reporting this is because I have to "cheat" by a
substantial amount (multiplying the radius by 1 - 1e-6 is not sufficient) to
prevent this, and the required amount appears to depend on the pixel size of
the gradient after rendering.

Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the cairo-bugs mailing list