From 320dc14298c1887eb4eb0b1c1cb109a22213d6fd Mon Sep 17 00:00:00 2001 From: Philip Kristoffersen Date: Sun, 1 May 2022 20:30:15 +0200 Subject: [PATCH] Do not change ui scale on windows (#115) --- src/ui/uiapp.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ui/uiapp.rs b/src/ui/uiapp.rs index a623c51..8ba9a96 100644 --- a/src/ui/uiapp.rs +++ b/src/ui/uiapp.rs @@ -79,7 +79,9 @@ impl epi::App for MyEguiApp { _frame: &epi::Frame, _storage: Option<&dyn epi::Storage>, ) { + #[cfg(target_family = "unix")] ctx.set_pixels_per_point(1.0); + let mut style: egui::Style = (*ctx.style()).clone(); create_style(&mut style); ctx.set_style(style);