summaryrefslogtreecommitdiff
path: root/gfx
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-09-06 10:30:22 (GMT)
committerWerner Almesberger <werner@almesberger.net>2016-09-06 10:30:22 (GMT)
commitdb112f168a9cea55c0bbc3085e4a19a406c34de7 (patch)
tree8f141baa571fcfb4901d187b71a2d6ac4193b704 /gfx
parent7236f343a616ecfe8f2379e8ce1618263359d947 (diff)
downloadeeshow-db112f168a9cea55c0bbc3085e4a19a406c34de7.zip
eeshow-db112f168a9cea55c0bbc3085e4a19a406c34de7.tar.gz
eeshow-db112f168a9cea55c0bbc3085e4a19a406c34de7.tar.bz2
gfx/cro.c: multiply line width of PDF, PS, SVG by 16, to offset internal scaling
Diffstat (limited to 'gfx')
-rw-r--r--gfx/cro.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gfx/cro.c b/gfx/cro.c
index 6bf527c..6c50ab7 100644
--- a/gfx/cro.c
+++ b/gfx/cro.c
@@ -673,7 +673,7 @@ static int cr_pdf_end(void *ctx)
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);
+ cairo_set_line_width(cc->cr, 0.5 * cc->scale * 16);
/* @@@ CAIRO_LINE_CAP_ROUND makes all non-dashed lines disappear */
cairo_set_line_cap(cc->cr, CAIRO_LINE_CAP_SQUARE);
@@ -769,7 +769,7 @@ static int ps_end(struct cro_ctx *cc, int eps)
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);
+ cairo_set_line_width(cc->cr, 0.5 * cc->scale * 16);
/* @@@ CAIRO_LINE_CAP_ROUND makes all non-dashed lines disappear */
cairo_set_line_cap(cc->cr, CAIRO_LINE_CAP_SQUARE);
@@ -851,7 +851,7 @@ static int cr_svg_end(void *ctx)
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);
+ cairo_set_line_width(cc->cr, 0.5 * cc->scale * 16);
/* @@@ CAIRO_LINE_CAP_ROUND makes all non-dashed lines disappear */
cairo_set_line_cap(cc->cr, CAIRO_LINE_CAP_SQUARE);