summaryrefslogtreecommitdiff
path: root/raster/pathstroke.c
diff options
context:
space:
mode:
Diffstat (limited to 'raster/pathstroke.c')
-rw-r--r--raster/pathstroke.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/raster/pathstroke.c b/raster/pathstroke.c
index f1afb825..cafcd663 100644
--- a/raster/pathstroke.c
+++ b/raster/pathstroke.c
@@ -458,7 +458,7 @@ strokebezier(struct sctx *s,
}
fz_error *
-fz_strokepath(fz_gel *gel, fz_pathnode *path, fz_matrix ctm, float flatness)
+fz_strokepath(fz_gel *gel, fz_pathnode *path, fz_matrix ctm, float flatness, float linewidth)
{
fz_error *error;
struct sctx s;
@@ -471,7 +471,7 @@ fz_strokepath(fz_gel *gel, fz_pathnode *path, fz_matrix ctm, float flatness)
s.linecap = path->linecap;
s.linejoin = path->linejoin;
- s.linewidth = path->linewidth * 0.5;
+ s.linewidth = linewidth * 0.5; /* hairlines use a different value from the path value */
s.miterlimit = path->miterlimit;
s.sn = 0;
s.bn = 0;
@@ -653,7 +653,7 @@ dashbezier(struct sctx *s,
}
fz_error *
-fz_dashpath(fz_gel *gel, fz_pathnode *path, fz_matrix ctm, float flatness)
+fz_dashpath(fz_gel *gel, fz_pathnode *path, fz_matrix ctm, float flatness, float linewidth)
{
fz_error *error;
struct sctx s;
@@ -666,7 +666,7 @@ fz_dashpath(fz_gel *gel, fz_pathnode *path, fz_matrix ctm, float flatness)
s.linecap = path->linecap;
s.linejoin = path->linejoin;
- s.linewidth = path->linewidth * 0.5;
+ s.linewidth = linewidth * 0.5;
s.miterlimit = path->miterlimit;
s.sn = 0;
s.bn = 0;