Skip to content
Browse files

Match the azure backend regarding cap stuff

I think this is wrong because it won't respect cap style at all when
stroking lines but we'll cross that bridge when we get to it
  • Loading branch information...
Eijebong committed Aug 8, 2019
1 parent 1dee418 commit a9fd26729bdfd7e19b890b2f0d7365838c82da94
Showing with 7 additions and 1 deletion.
  1. +7 −1 components/canvas/
@@ -349,11 +349,17 @@ impl GenericDrawTarget for raqote::DrawTarget {
let mut pb = raqote::PathBuilder::new();
pb.move_to(start.x, start.y);
pb.line_to(end.x, end.y);
let mut stroke_options = stroke_options.as_raqote().clone();
let cap = match stroke_options.join {
raqote::LineJoin::Round => raqote::LineCap::Round,
_ => raqote::LineCap::Butt,
stroke_options.cap = cap;

fn stroke_rect(

0 comments on commit a9fd267

Please sign in to comment.
You can’t perform that action at this time.