From 7f46d436affe7bd3c3c5eab407606028fe348ad5 Mon Sep 17 00:00:00 2001 From: Mikolaj Wielgus Date: Tue, 18 Jun 2024 01:56:48 +0200 Subject: [PATCH] egui: fix sign of Y displayed on the bottom bar --- src/bin/topola-egui/bottom.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/topola-egui/bottom.rs b/src/bin/topola-egui/bottom.rs index fa865bd..f295d12 100644 --- a/src/bin/topola-egui/bottom.rs +++ b/src/bin/topola-egui/bottom.rs @@ -13,7 +13,7 @@ impl Bottom { let latest_pos = transform .inverse() .transform_pos(ctx.input(|i| i.pointer.latest_pos().unwrap_or_default())); - ui.label(format!("x: {} y: {}", latest_pos.x, latest_pos.y)); + ui.label(format!("x: {} y: {}", latest_pos.x, -latest_pos.y)); }); } }