mirror of
https://github.com/kangyu-california/PersistentWindows.git
synced 2025-05-11 13:05:38 +02:00
deblur text for dialogs on high DPI monitor
This commit is contained in:
parent
4ce7c99e46
commit
88ae128ae2
5 changed files with 14 additions and 15 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue