Fix running on Mono

This commit is contained in:
CasualPokePlayer 2024-06-10 11:32:07 -07:00
parent 2765da78ef
commit 96f5a4b100
1 changed files with 2 additions and 1 deletions

View File

@ -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);