mirror of
https://github.com/kangyu-california/PersistentWindows.git
synced 2025-05-11 21:15:38 +02:00
make dpi awareness code compatible with windows7
This commit is contained in:
parent
655677ce72
commit
c5dd09c05d
5 changed files with 15 additions and 6 deletions
|
@ -10,7 +10,7 @@ namespace PersistentWindows.Common
|
|||
public string db_entry_name = null;
|
||||
public NameDbEntry()
|
||||
{
|
||||
User32.SetThreadDpiAwarenessContext(User32.DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2);
|
||||
User32.SetThreadDpiAwarenessContextSafe(User32.DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2);
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue