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 /frontends/beos | |
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 'frontends/beos')
-rw-r--r-- | frontends/beos/plotters.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frontends/beos/plotters.cpp b/frontends/beos/plotters.cpp index c4903e045..a0a70f5b7 100644 --- a/frontends/beos/plotters.cpp +++ b/frontends/beos/plotters.cpp @@ -370,7 +370,7 @@ nsbeos_plot_line(const struct redraw_context *ctx, nsbeos_set_colour(style->stroke_colour); float pensize = view->PenSize(); - view->SetPenSize(style->stroke_width); + view->SetPenSize(plot_style_fixed_to_float(style->stroke_width)); BPoint start(line->x0, line->y0); BPoint end(line->x1, line->y1); @@ -447,7 +447,7 @@ nsbeos_plot_rectangle(const struct redraw_context *ctx, nsbeos_set_colour(style->stroke_colour); float pensize = view->PenSize(); - view->SetPenSize(style->stroke_width); + view->SetPenSize(plot_style_fixed_to_float(style->stroke_width)); BRect rect(nsrect->x0, nsrect->y0, nsrect->x1, nsrect->y1); view->StrokeRect(rect, pat); |