From df7f0e63a5367bef737ef7b1ee9f68aa29afcd6c Mon Sep 17 00:00:00 2001 From: Philip Kristoffersen Date: Tue, 27 Dec 2022 20:25:24 +0100 Subject: [PATCH] Fix dpi scaling on linux --- Cargo.toml | 3 --- src/ui/uiapp.rs | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 3db1908..b49eef8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -66,9 +66,6 @@ winres = "^0.1.12" [target."cfg(windows)".dependencies] winreg = "^0.10.1" -[target.aarch64-unknown-linux-gnu] -pre-build = ["sudo apt-get update && sudo apt-get install -y libclang-dev libgtk-3-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libspeechd-dev libxkbcommon-dev libssl-dev"] - [features] # This feature is enabled when building for a flatpak environment flatpak = [] \ No newline at end of file diff --git a/src/ui/uiapp.rs b/src/ui/uiapp.rs index ba6f919..0bd7b8a 100644 --- a/src/ui/uiapp.rs +++ b/src/ui/uiapp.rs @@ -332,7 +332,7 @@ impl MyEguiApp { fn setup(ctx: &egui::Context) { #[cfg(target_family = "unix")] - ctx.set_pixels_per_point(1.0); + ctx.set_pixels_per_point(0.999); let mut style: egui::Style = (*ctx.style()).clone(); create_style(&mut style);