summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2018-05-23 13:48:17 +0100
committerMichael Drake <michael.drake@codethink.co.uk>2018-05-23 13:48:17 +0100
commit8332bf6b2a42fd03b864e46f60eeaa76b51da496 (patch)
treea2b9a813dd13c6944e47c307a89f3f0026e61e41 /content
parent5f4f23f11a1c2aaa85df6bb58f0be6e66fa7cc7b (diff)
downloadnetsurf-8332bf6b2a42fd03b864e46f60eeaa76b51da496.tar.gz
netsurf-8332bf6b2a42fd03b864e46f60eeaa76b51da496.tar.bz2
Plotters: Remove width param from path plotter.
We now use the stroke_width in the plot_style.
Diffstat (limited to 'content')
-rw-r--r--content/handlers/image/svg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/content/handlers/image/svg.c b/content/handlers/image/svg.c
index 766bb104c..51260733d 100644
--- a/content/handlers/image/svg.c
+++ b/content/handlers/image/svg.c
@@ -188,14 +188,14 @@ svg_redraw_internal(struct content *c,
for (i = 0; i != diagram->shape_count; i++) {
if (diagram->shape[i].path) {
+ pstyle.stroke_width = plot_style_int_to_fixed(
+ diagram->shape[i].stroke);
pstyle.stroke_colour = BGR(diagram->shape[i].stroke);
pstyle.fill_colour = BGR(diagram->shape[i].fill);
res = ctx->plot->path(ctx,
&pstyle,
diagram->shape[i].path,
diagram->shape[i].path_length,
- plot_style_int_to_fixed(
- diagram->shape[i].stroke_width),
transform);
if (res != NSERROR_OK) {
return false;