From e8c6dd61f9a4285a74ec8e64a582e69e1eea26f8 Mon Sep 17 00:00:00 2001 From: RobotCritter Date: Tue, 19 Jul 2022 20:12:35 -0700 Subject: [PATCH] Setting UI scale factor according to system pixel density --- editor/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/src/main.rs b/editor/src/main.rs index d960b8e..370639e 100644 --- a/editor/src/main.rs +++ b/editor/src/main.rs @@ -192,7 +192,7 @@ impl Application { let screen_desc = egui_wgpu_backend::ScreenDescriptor { physical_width: self.config.width, physical_height: self.config.height, - scale_factor: 1.0, // TODO ??? + scale_factor: self.egui_ctx.pixels_per_point(), }; self.egui_rp