diff options
author | Michael Drake <michael.drake@codethink.co.uk> | 2018-05-23 13:04:19 +0100 |
---|---|---|
committer | Michael Drake <michael.drake@codethink.co.uk> | 2018-05-23 13:04:19 +0100 |
commit | 66493421e65d8cbda3e17fdbe43824387e3d51a7 (patch) | |
tree | d260fb3aa5a0af3de954516e8eaac0d3cb5113b4 /content/handlers/image/svg.c | |
parent | a58d97a41a6192038573da6862571dc72a560458 (diff) | |
download | netsurf-66493421e65d8cbda3e17fdbe43824387e3d51a7.tar.gz netsurf-66493421e65d8cbda3e17fdbe43824387e3d51a7.tar.bz2 |
Plotters: Change stroke width in the plot_style_t to fixed point.
Diffstat (limited to 'content/handlers/image/svg.c')
-rw-r--r-- | content/handlers/image/svg.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/content/handlers/image/svg.c b/content/handlers/image/svg.c index 924c84879..766bb104c 100644 --- a/content/handlers/image/svg.c +++ b/content/handlers/image/svg.c @@ -191,11 +191,12 @@ svg_redraw_internal(struct content *c, 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, - diagram->shape[i].stroke_width, - transform); + &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; } |