Skip to content
This repository was archived by the owner on Aug 23, 2025. It is now read-only.

Commit 46086c0

Browse files
committed
Fixed DPI blur for higher DPI settings
1 parent f8ba446 commit 46086c0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

86BoxManager/Program.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,18 @@ public struct COPYDATASTRUCT
4545
[DllImport("shell32.dll", SetLastError = true)]
4646
static extern void SetCurrentProcessExplicitAppUserModelID([MarshalAs(UnmanagedType.LPWStr)] string AppID);
4747

48+
[DllImport("user32.dll")]
49+
private static extern bool SetProcessDPIAware();
50+
4851
private static readonly string AppID = "86Box.86Box"; //For grouping windows together in Win7+ taskbar
4952
private static Mutex mutex = null;
5053

5154
[STAThread]
5255
static void Main()
5356
{
57+
if (Environment.OSVersion.Version.Major >= 6)
58+
SetProcessDPIAware();
59+
5460
SetCurrentProcessExplicitAppUserModelID(AppID);
5561
const string name = "86Box Manager";
5662

0 commit comments

Comments
 (0)