summaryrefslogtreecommitdiff
path: root/frontends/riscos/plotters.c
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 /frontends/riscos/plotters.c
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 'frontends/riscos/plotters.c')
-rw-r--r--frontends/riscos/plotters.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/frontends/riscos/plotters.c b/frontends/riscos/plotters.c
index 286ddab1b..2b306827d 100644
--- a/frontends/riscos/plotters.c
+++ b/frontends/riscos/plotters.c
@@ -483,7 +483,6 @@ ro_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.
*/
@@ -492,7 +491,6 @@ ro_plot_path(const struct redraw_context *ctx,
const plot_style_t *pstyle,
const float *p,
unsigned int n,
- float width,
const float transform[6])
{
static const draw_line_style line_style = {
@@ -591,7 +589,9 @@ ro_plot_path(const struct redraw_context *ctx,
}
error = xdraw_stroke((draw_path *) path, 0, &trfm, 0,
- width * 2 * 256, &line_style, 0);
+ plot_style_fixed_to_int(
+ pstyle->stroke_width) * 2 * 256,
+ &line_style, 0);
if (error) {
NSLOG(netsurf, INFO, "xdraw_stroke: 0x%x: %s",
error->errnum, error->errmess);