mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-02-03 04:20:29 +01:00
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:
parent
5041b462d0
commit
c565bad890
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue