deblur text for dialogs on high DPI monitor

This commit is contained in:
Kang Yu 2023-07-28 13:10:19 -07:00
parent 4ce7c99e46
commit 88ae128ae2
5 changed files with 14 additions and 15 deletions

View file

@ -1,6 +1,8 @@
using System;
using System.Windows.Forms;
using PersistentWindows.Common.WinApiBridge;
namespace PersistentWindows.Common
{
public partial class LayoutProfile : Form
@ -9,6 +11,7 @@ namespace PersistentWindows.Common
public LayoutProfile()
{
User32.SetThreadDpiAwarenessContext(User32.DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2);
InitializeComponent();
}