From 8cd52ca75cf22c3bb9954597d362129f333cd39f Mon Sep 17 00:00:00 2001 From: Mikolaj Wielgus Date: Wed, 11 Mar 2026 08:30:52 +0100 Subject: [PATCH] Flip components if flipped in Specctra DSN --- topola-egui/src/displayer.rs | 2 +- topola/src/specctra.rs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/topola-egui/src/displayer.rs b/topola-egui/src/displayer.rs index c3c27e6..ae79dbe 100644 --- a/topola-egui/src/displayer.rs +++ b/topola-egui/src/displayer.rs @@ -150,7 +150,7 @@ impl Displayer { ui.painter().add(egui::Shape::convex_polygon( points, - egui::Color32::RED, + color, egui::Stroke::new(5.0 / viewport.scale_factor(), color), )); } diff --git a/topola/src/specctra.rs b/topola/src/specctra.rs index 275563d..bcb879d 100644 --- a/topola/src/specctra.rs +++ b/topola/src/specctra.rs @@ -105,7 +105,7 @@ impl Board { pin.point_with_rotation(), layer, (circle.diameter / 2.0) as u64, - false, + !place_side_is_front, ) } Shape::Rect(rect) => { @@ -119,7 +119,7 @@ impl Board { rect.x2, rect.y2, layer, - false, + !place_side_is_front, ) } Shape::Path(path) => { @@ -131,7 +131,7 @@ impl Board { &path.coords, path.width, layer, - false, + !place_side_is_front, ) } Shape::Polygon(polygon) => { @@ -143,7 +143,7 @@ impl Board { &polygon.coords, polygon.width, layer, - false, + !place_side_is_front, ) } }