sdl2-demo: disable painting of bends

These cause stack overflows due to a bug in Pathfinder.
This commit is contained in:
Mikolaj Wielgus 2024-05-12 01:56:01 +02:00
parent 9bd63d3f0d
commit 42a0777e7f
1 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ impl<'a> Painter<'a> {
self.canvas.stroke_path(path);
}
PrimitiveShape::Bend(bend) => {
let delta1 = bend.from - bend.c.pos;
/*let delta1 = bend.from - bend.c.pos;
let delta2 = bend.to - bend.c.pos;
let angle1 = delta1.y().atan2(delta1.x());
@ -52,7 +52,7 @@ impl<'a> Painter<'a> {
ArcDirection::CW,
);
self.canvas.set_line_width(bend.width as f32);
self.canvas.stroke_path(path);
self.canvas.stroke_path(path);*/
}
}