diff options
author | Michael Drake <michael.drake@codethink.co.uk> | 2018-05-23 13:48:17 +0100 |
---|---|---|
committer | Michael Drake <michael.drake@codethink.co.uk> | 2018-05-23 13:48:17 +0100 |
commit | 8332bf6b2a42fd03b864e46f60eeaa76b51da496 (patch) | |
tree | a2b9a813dd13c6944e47c307a89f3f0026e61e41 /frontends/monkey/plot.c | |
parent | 5f4f23f11a1c2aaa85df6bb58f0be6e66fa7cc7b (diff) | |
download | netsurf-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 'frontends/monkey/plot.c')
-rw-r--r-- | frontends/monkey/plot.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/frontends/monkey/plot.c b/frontends/monkey/plot.c index d00dca754..2fc9a3cb6 100644 --- a/frontends/monkey/plot.c +++ b/frontends/monkey/plot.c @@ -177,7 +177,6 @@ monkey_plot_polygon(const struct redraw_context *ctx, * \param pstyle Style controlling the path plot. * \param p elements of path * \param n nunber of elements on path - * \param width The width of the path * \param transform A transform to apply to the path. * \return NSERROR_OK on success else error code. */ @@ -186,12 +185,11 @@ monkey_plot_path(const struct redraw_context *ctx, const plot_style_t *pstyle, const float *p, unsigned int n, - float width, const float transform[6]) { fprintf(stdout, "PLOT PATH VERTICIES %d WIDTH %f\n", - n, width); + n, plot_style_fixed_to_float(pstyle->stroke_width)); return NSERROR_OK; } @@ -273,7 +271,7 @@ static const struct plotter_table plotters = { .path = monkey_plot_path, .bitmap = monkey_plot_bitmap, .text = monkey_plot_text, - .option_knockout = true, + .option_knockout = true, }; const struct plotter_table* monkey_plotters = &plotters; |