Browse Source
Merge branch 'master' into dev/siegfriedpammer/radiobutton-groupname
pull/1827/head
Jeremy Koritzinsky
8 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
6 additions and
1 deletions
-
src/Windows/Avalonia.Win32/Win32Platform.cs
|
|
|
@ -50,7 +50,12 @@ namespace Avalonia.Win32 |
|
|
|
// Declare that this process is aware of per monitor DPI
|
|
|
|
if (UnmanagedMethods.ShCoreAvailable) |
|
|
|
{ |
|
|
|
UnmanagedMethods.SetProcessDpiAwareness(UnmanagedMethods.PROCESS_DPI_AWARENESS.PROCESS_PER_MONITOR_DPI_AWARE); |
|
|
|
var osVersion = Environment.OSVersion.Version; |
|
|
|
if (osVersion.Major > 6 || (osVersion.Major == 6 && osVersion.Minor > 2)) |
|
|
|
{ |
|
|
|
UnmanagedMethods.SetProcessDpiAwareness(UnmanagedMethods.PROCESS_DPI_AWARENESS |
|
|
|
.PROCESS_PER_MONITOR_DPI_AWARE); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
CreateMessageWindow(); |
|
|
|
|