diff options
author | Mary-nyan <mary@mary.zone> | 2022-12-09 18:00:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-09 18:00:53 +0100 |
commit | 872f036d6486c4943b5f1d287165eb1338a19edf (patch) | |
tree | fe64e991eb22e3751320669aa9b8b25f49cd3580 /Ryujinx.Common/System/ForceDpiAware.cs | |
parent | dca96122bfc60bcd4c0067b888c694392856dbda (diff) |
misc: Remove dependency on System.Drawing.Common (#4082)1.1.456
We only used it in one spot for DPI scaling factor.
This implements the same behaviour using gdiplus.
This remove 700KB of dependency to download and around 170KB unpacked.
Diffstat (limited to 'Ryujinx.Common/System/ForceDpiAware.cs')
-rw-r--r-- | Ryujinx.Common/System/ForceDpiAware.cs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Ryujinx.Common/System/ForceDpiAware.cs b/Ryujinx.Common/System/ForceDpiAware.cs index d40d5f5e..8d19876e 100644 --- a/Ryujinx.Common/System/ForceDpiAware.cs +++ b/Ryujinx.Common/System/ForceDpiAware.cs @@ -1,6 +1,5 @@ using Ryujinx.Common.Logging; using System; -using System.Drawing; using System.Globalization; using System.Runtime.InteropServices; @@ -51,7 +50,7 @@ namespace Ryujinx.Common.System { if (OperatingSystem.IsWindows()) { - userDpiScale = Graphics.FromHwnd(IntPtr.Zero).DpiX; + userDpiScale = GdiPlusHelper.GetDpiX(IntPtr.Zero); } else if (OperatingSystem.IsLinux()) { |