summaryrefslogtreecommitdiff
path: root/svgtiny.c
diff options
context:
space:
mode:
Diffstat (limited to 'svgtiny.c')
-rw-r--r--svgtiny.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/svgtiny.c b/svgtiny.c
index ad2e8a5..2847af4 100644
--- a/svgtiny.c
+++ b/svgtiny.c
@@ -1033,7 +1033,8 @@ struct svgtiny_shape *svgtiny_add_shape(struct svgtiny_parse_state *state)
shape->text = 0;
shape->fill = state->fill;
shape->stroke = state->stroke;
- shape->stroke_width = state->stroke_width;
+ shape->stroke_width = state->stroke_width *
+ (state->ctm.a + state->ctm.d) / 2;
return shape;
}