pen: Relax invisibility criteria from half-tolerance to quarter-tolerance

Inkscape is one user who sets geometric tolerance to 1.25 pixels when
stroking sub-pixel lines. Whilst we wait for inkscape to set sensible
values for their tolerance, we have to allow through the current values
in order to prevent the fine strokes from disappearing.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=56099
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2012-10-19 12:22:58 +01:00
parent 5041b462d0
commit c565bad890

View file

@ -284,7 +284,7 @@ _cairo_pen_vertices_needed (double tolerance,
radius);
int num_vertices;
if (tolerance >= 2*major_axis) {
if (tolerance >= 4*major_axis) { /* XXX relaxed from 2*major for inkscape */
num_vertices = 1;
} else if (tolerance >= major_axis) {
num_vertices = 4;