summaryrefslogtreecommitdiff
path: root/frontends/beos
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/beos
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/beos')
-rw-r--r--frontends/beos/plotters.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/frontends/beos/plotters.cpp b/frontends/beos/plotters.cpp
index a0a70f5b7..2c50f9497 100644
--- a/frontends/beos/plotters.cpp
+++ b/frontends/beos/plotters.cpp
@@ -518,7 +518,6 @@ nsbeos_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.
*/
@@ -527,7 +526,6 @@ nsbeos_plot_path(const struct redraw_context *ctx,
const plot_style_t *pstyle,
const float *p,
unsigned int n,
- float width,
const float transform[6])
{
unsigned int i;
@@ -578,7 +576,7 @@ nsbeos_plot_path(const struct redraw_context *ctx,
rgb_color old_high = view->HighColor();
float old_pen = view->PenSize();
- view->SetPenSize(width);
+ view->SetPenSize(plot_style_fixed_to_float(pstyle->stroke_width));
view->MovePenTo(0, 0);
if (pstyle->fill_colour != NS_TRANSPARENT) {
view->SetHighColor(nsbeos_rgb_colour(pstyle->fill_colour));