From f9525864aad2b9e0c7f21245484d832c956c8d06 Mon Sep 17 00:00:00 2001 From: notmd Date: Tue, 19 Mar 2024 17:19:20 +0700 Subject: [PATCH] correctly handle scale --- crates/bevy_dev_tools/src/debug_overlay/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_dev_tools/src/debug_overlay/mod.rs b/crates/bevy_dev_tools/src/debug_overlay/mod.rs index 952539850638d..3029a05c9b6cc 100644 --- a/crates/bevy_dev_tools/src/debug_overlay/mod.rs +++ b/crates/bevy_dev_tools/src/debug_overlay/mod.rs @@ -200,7 +200,7 @@ fn outline_roots( ); } let window_scale = window.get_single().map_or(1., Window::scale_factor); - let scale_factor = window_scale * outline.ui_scale.0; + let scale_factor = outline.ui_scale.0; // We let the line be defined by the window scale alone let line_width = outline