Skip to content

Commit df7f0e6

Browse files
committed
Fix dpi scaling on linux
1 parent 2c679ad commit df7f0e6

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,6 @@ winres = "^0.1.12"
6666
[target."cfg(windows)".dependencies]
6767
winreg = "^0.10.1"
6868

69-
[target.aarch64-unknown-linux-gnu]
70-
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"]
71-
7269
[features]
7370
# This feature is enabled when building for a flatpak environment
7471
flatpak = []

src/ui/uiapp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ impl MyEguiApp {
332332

333333
fn setup(ctx: &egui::Context) {
334334
#[cfg(target_family = "unix")]
335-
ctx.set_pixels_per_point(1.0);
335+
ctx.set_pixels_per_point(0.999);
336336

337337
let mut style: egui::Style = (*ctx.style()).clone();
338338
create_style(&mut style);

0 commit comments

Comments
 (0)