Skip to content

Commit

Permalink
Fixed DPI blur for higher DPI settings
Browse files Browse the repository at this point in the history
  • Loading branch information
daviunic committed Apr 10, 2020
1 parent f8ba446 commit 46086c0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions 86BoxManager/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,18 @@ public struct COPYDATASTRUCT
[DllImport("shell32.dll", SetLastError = true)]
static extern void SetCurrentProcessExplicitAppUserModelID([MarshalAs(UnmanagedType.LPWStr)] string AppID);

[DllImport("user32.dll")]
private static extern bool SetProcessDPIAware();

private static readonly string AppID = "86Box.86Box"; //For grouping windows together in Win7+ taskbar
private static Mutex mutex = null;

[STAThread]
static void Main()
{
if (Environment.OSVersion.Version.Major >= 6)
SetProcessDPIAware();

SetCurrentProcessExplicitAppUserModelID(AppID);
const string name = "86Box Manager";

Expand Down

0 comments on commit 46086c0

Please sign in to comment.