diff --git a/Ninjacrab.PersistentWindows.Solution/Common/WinApiBridge/User32.cs b/Ninjacrab.PersistentWindows.Solution/Common/WinApiBridge/User32.cs index 780e559..6e0cf6d 100644 --- a/Ninjacrab.PersistentWindows.Solution/Common/WinApiBridge/User32.cs +++ b/Ninjacrab.PersistentWindows.Solution/Common/WinApiBridge/User32.cs @@ -496,7 +496,7 @@ namespace PersistentWindows.Common.WinApiBridge [DllImport("user32.dll", SetLastError = true)] public static extern uint GetDpiForWindow(IntPtr hWnd); - public static bool DpiSenstiveCall = true; + public static bool DpiSenstiveCall = false; [DllImport("user32.dll")] public static extern bool IsValidDpiAwarenessContext(int dpi_awareness_cxt); [DllImport("user32.dll")] diff --git a/Ninjacrab.PersistentWindows.Solution/SystrayShell/App.config b/Ninjacrab.PersistentWindows.Solution/SystrayShell/App.config index b4cec59..3a2e75f 100644 --- a/Ninjacrab.PersistentWindows.Solution/SystrayShell/App.config +++ b/Ninjacrab.PersistentWindows.Solution/SystrayShell/App.config @@ -4,9 +4,9 @@ - + - + \ No newline at end of file diff --git a/Ninjacrab.PersistentWindows.Solution/SystrayShell/Program.cs b/Ninjacrab.PersistentWindows.Solution/SystrayShell/Program.cs index 2950e9e..af73dd6 100644 --- a/Ninjacrab.PersistentWindows.Solution/SystrayShell/Program.cs +++ b/Ninjacrab.PersistentWindows.Solution/SystrayShell/Program.cs @@ -151,8 +151,8 @@ namespace PersistentWindows.SystrayShell case "-delay_auto_capture": delay_auto_capture = 1; break; - case "-dpi_sensitive_call=0": - User32.DpiSenstiveCall = false; + case "-dpi_sensitive_call=1": + User32.DpiSenstiveCall = true; break; case "-reject_scale_factor_change=0": pwp.rejectScaleFactorChange = false; diff --git a/Ninjacrab.PersistentWindows.Solution/SystrayShell/app.manifest b/Ninjacrab.PersistentWindows.Solution/SystrayShell/app.manifest index e529b6b..39e2b4e 100644 --- a/Ninjacrab.PersistentWindows.Solution/SystrayShell/app.manifest +++ b/Ninjacrab.PersistentWindows.Solution/SystrayShell/app.manifest @@ -53,7 +53,7 @@ Makes the application long-path aware. See https://docs.microsoft.com/windows/win32/fileio/maximum-file-path-limitation --> - true + true