From 8c61ddd49d0b300866b602ad9f7fad69cd3bfa40 Mon Sep 17 00:00:00 2001 From: riperiperi Date: Sat, 12 Aug 2023 17:02:22 +0100 Subject: [PATCH] Ava UI: Allow DPI switching (#5558) ForceDpiAware.Windows has a side effect of forcing the application DPI to be the same as the primary monitor. This isn't good if you have multiple monitors with different DPI. On Avalonia, I don't think there are any downsides to disabling this. When it's disabled, `ForceDpiAware.GetWindowScaleFactor` always returns 1. --- src/Ryujinx.Ava/Program.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Ryujinx.Ava/Program.cs b/src/Ryujinx.Ava/Program.cs index 86f38c34..168e9216 100644 --- a/src/Ryujinx.Ava/Program.cs +++ b/src/Ryujinx.Ava/Program.cs @@ -100,8 +100,6 @@ namespace Ryujinx.Ava ReloadConfig(); - ForceDpiAware.Windows(); - WindowScaleFactor = ForceDpiAware.GetWindowScaleFactor(); // Logging system information.