summaryrefslogtreecommitdiff
path: root/frontends/gtk
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/gtk
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/gtk')
-rw-r--r--frontends/gtk/plotters.c4
-rw-r--r--frontends/gtk/print.c2
2 files changed, 1 insertions, 5 deletions
diff --git a/frontends/gtk/plotters.c b/frontends/gtk/plotters.c
index 6178104d5..4a5ef510c 100644
--- a/frontends/gtk/plotters.c
+++ b/frontends/gtk/plotters.c
@@ -399,7 +399,6 @@ nsgtk_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.
*/
@@ -408,7 +407,6 @@ nsgtk_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;
@@ -426,7 +424,7 @@ nsgtk_plot_path(const struct redraw_context *ctx,
cairo_get_matrix(current_cr, &old_ctm);
/* Set up line style and width */
- cairo_set_line_width(current_cr, 1);
+ nsgtk_set_line_width(pstyle->stroke_width);
nsgtk_set_solid();
/* Load new CTM */
diff --git a/frontends/gtk/print.c b/frontends/gtk/print.c
index f447a463e..c4f1b0f7a 100644
--- a/frontends/gtk/print.c
+++ b/frontends/gtk/print.c
@@ -427,7 +427,6 @@ nsgtk_print_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.
*/
@@ -436,7 +435,6 @@ nsgtk_print_plot_path(const struct redraw_context *ctx,
const plot_style_t *pstyle,
const float *p,
unsigned int n,
- float width,
const float transform[6])
{
/* Only the internal SVG renderer uses this plot call currently,