summaryrefslogtreecommitdiff
path: root/gfx
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-09-05 05:33:53 (GMT)
committerWerner Almesberger <werner@almesberger.net>2016-09-05 05:33:53 (GMT)
commite90df0da664b3e256761e910573bbd7d1978ef91 (patch)
treeff9303ab7ae896cb8c252d1349c30076c366b19d /gfx
parent0f2d1d5fc7ce8019641c7e96cecaa5db4f5b076c (diff)
downloadeeshow-e90df0da664b3e256761e910573bbd7d1978ef91.zip
eeshow-e90df0da664b3e256761e910573bbd7d1978ef91.tar.gz
eeshow-e90df0da664b3e256761e910573bbd7d1978ef91.tar.bz2
gfx/cro.c: tolerance to 0.1 mil to keep arcs from getting "optimized" out
Cairo seems to be a bit overzealous there.
Diffstat (limited to 'gfx')
-rw-r--r--gfx/cro.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gfx/cro.c b/gfx/cro.c
index 3092b54..dc63c6d 100644
--- a/gfx/cro.c
+++ b/gfx/cro.c
@@ -669,6 +669,7 @@ static int cr_pdf_end(void *ctx)
NULL, w, h);
cc->cr = cairo_create(cc->s);
+ cairo_set_tolerance(cc->cr, 72 / 10000.0); // 0.1 mil
cairo_scale(cc->cr, 1.0 / 16.0, 1.0 / 16);
setup_font(cc);
cairo_set_line_width(cc->cr, 0.5 * cc->scale);
@@ -763,6 +764,7 @@ static int cr_ps_end(void *ctx)
NULL, w, h);
cc->cr = cairo_create(cc->s);
+ cairo_set_tolerance(cc->cr, 72 / 10000.0); // 0.1 mil
cairo_scale(cc->cr, 1.0 / 16.0, 1.0 / 16);
setup_font(cc);
cairo_set_line_width(cc->cr, 0.5 * cc->scale);