aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Common/System/ForceDpiAware.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.Common/System/ForceDpiAware.cs')
-rw-r--r--Ryujinx.Common/System/ForceDpiAware.cs3
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())
{