From 6169f9b235c7727c45e2bdea43df45557778426c Mon Sep 17 00:00:00 2001 From: Philip Kristoffersen Date: Sun, 10 Apr 2022 08:15:15 +0200 Subject: [PATCH] Set pixels_per_point to 1.0 --- src/ui/uiapp.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ui/uiapp.rs b/src/ui/uiapp.rs index f3a91c6..d1fa5e3 100644 --- a/src/ui/uiapp.rs +++ b/src/ui/uiapp.rs @@ -73,6 +73,7 @@ impl epi::App for MyEguiApp { } fn update(&mut self, ctx: &egui::Context, _frame: &epi::Frame) { + ctx.set_pixels_per_point(1.0); let mut style: egui::Style = (*ctx.style()).clone(); create_style(&mut style); ctx.set_style(style);