We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents af02b2b + d7d7276 commit 00616feCopy full SHA for 00616fe
src/drawing/backend_impl/canvas.rs
@@ -112,8 +112,8 @@ impl DrawingBackend for CanvasBackend {
112
return Ok(());
113
}
114
115
- self.context
116
- .set_stroke_style(&make_canvas_color(style.as_color()));
+ self.context.set_stroke_style(&make_canvas_color(style.as_color()));
+ self.context.set_line_width(style.stroke_width() as f64);
117
self.context.begin_path();
118
self.context.move_to(f64::from(from.0), f64::from(from.1));
119
self.context.line_to(f64::from(to.0), f64::from(to.1));
0 commit comments