From 42a0777e7fe63f249212107e960faa7817de0568 Mon Sep 17 00:00:00 2001 From: Mikolaj Wielgus Date: Sun, 12 May 2024 01:56:01 +0200 Subject: [PATCH] sdl2-demo: disable painting of bends These cause stack overflows due to a bug in Pathfinder. --- src/bin/topola-sdl2-demo/painter.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/topola-sdl2-demo/painter.rs b/src/bin/topola-sdl2-demo/painter.rs index 6b66d40..5c8b73e 100644 --- a/src/bin/topola-sdl2-demo/painter.rs +++ b/src/bin/topola-sdl2-demo/painter.rs @@ -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);*/ } }