mirror of https://codeberg.org/topola/topola.git
sdl2-demo: disable painting of bends
These cause stack overflows due to a bug in Pathfinder.
This commit is contained in:
parent
9bd63d3f0d
commit
42a0777e7f
|
|
@ -37,7 +37,7 @@ impl<'a> Painter<'a> {
|
||||||
self.canvas.stroke_path(path);
|
self.canvas.stroke_path(path);
|
||||||
}
|
}
|
||||||
PrimitiveShape::Bend(bend) => {
|
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 delta2 = bend.to - bend.c.pos;
|
||||||
|
|
||||||
let angle1 = delta1.y().atan2(delta1.x());
|
let angle1 = delta1.y().atan2(delta1.x());
|
||||||
|
|
@ -52,7 +52,7 @@ impl<'a> Painter<'a> {
|
||||||
ArcDirection::CW,
|
ArcDirection::CW,
|
||||||
);
|
);
|
||||||
self.canvas.set_line_width(bend.width as f32);
|
self.canvas.set_line_width(bend.width as f32);
|
||||||
self.canvas.stroke_path(path);
|
self.canvas.stroke_path(path);*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue