From 96f5a4b1009b35a598f1ee804996eadbb151c591 Mon Sep 17 00:00:00 2001 From: CasualPokePlayer <50538166+CasualPokePlayer@users.noreply.github.com> Date: Mon, 10 Jun 2024 11:32:07 -0700 Subject: [PATCH] Fix running on Mono --- src/BizHawk.Client.EmuHawk/DisplayManager/DisplayManager.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/BizHawk.Client.EmuHawk/DisplayManager/DisplayManager.cs b/src/BizHawk.Client.EmuHawk/DisplayManager/DisplayManager.cs index bccd565dc5..42263c8200 100644 --- a/src/BizHawk.Client.EmuHawk/DisplayManager/DisplayManager.cs +++ b/src/BizHawk.Client.EmuHawk/DisplayManager/DisplayManager.cs @@ -5,6 +5,7 @@ using System.Drawing; using BizHawk.Bizware.Graphics; using BizHawk.Bizware.Graphics.Controls; using BizHawk.Client.Common; +using BizHawk.Common; using BizHawk.Emulation.Common; namespace BizHawk.Client.EmuHawk @@ -51,7 +52,7 @@ namespace BizHawk.Client.EmuHawk public override Size GetPanelNativeSize() => _presentationPanel.NativeSize; - protected override int GetGraphicsControlDpi() => _graphicsControl.DeviceDpi; + protected override int GetGraphicsControlDpi() => OSTailoredCode.IsUnixHost ? 96 : _graphicsControl.DeviceDpi; protected override Point GraphicsControlPointToClient(Point p) => _graphicsControl.PointToClient(p);