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 /desktop/save_pdf.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 'desktop/save_pdf.c')
-rw-r--r-- | desktop/save_pdf.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/desktop/save_pdf.c b/desktop/save_pdf.c index 83e3d4f31..889190089 100644 --- a/desktop/save_pdf.c +++ b/desktop/save_pdf.c @@ -213,10 +213,10 @@ bool pdf_plot_rectangle(int x0, int y0, int x1, int y1, const plot_style_t *psty } apply_clip_and_mode(false, - NS_TRANSPARENT, - pstyle->stroke_colour, - pstyle->stroke_width, - dash); + NS_TRANSPARENT, + pstyle->stroke_colour, + plot_style_int_to_fixed(pstyle->stroke_width), + dash); HPDF_Page_Rectangle(pdf_page, x0, page_height - y0, x1 - x0, -(y1 - y0)); HPDF_Page_Stroke(pdf_page); @@ -245,10 +245,10 @@ bool pdf_plot_line(int x0, int y0, int x1, int y1, const plot_style_t *pstyle) } apply_clip_and_mode(false, - NS_TRANSPARENT, - pstyle->stroke_colour, - pstyle->stroke_width, - dash); + NS_TRANSPARENT, + pstyle->stroke_colour, + plot_style_int_to_fixed(pstyle->stroke_width), + dash); HPDF_Page_MoveTo(pdf_page, x0, page_height - y0); HPDF_Page_LineTo(pdf_page, x1, page_height - y1); |