Fix IDEA-277636: enable PerMonitorV2 DPI awareness via the app manifest

GitOrigin-RevId: 5a14ce4bef8a51ba77665813830ba89421a74130
This commit is contained in:
Ivan Migalev
2021-09-07 15:52:27 +07:00
committed by intellij-monorepo-bot
parent e9c7e0ab01
commit 1031dce2df
2 changed files with 19 additions and 1 deletions

View File

@@ -30,7 +30,7 @@ endif ()
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/WinLauncher.rc ${CMAKE_CURRENT_BINARY_DIR}/WinLauncher.rc @ONLY)
add_executable(WinLauncher WIN32 WinLauncher.cpp ${CMAKE_CURRENT_BINARY_DIR}/WinLauncher.rc)
add_executable(WinLauncher WIN32 WinLauncher.cpp WinLauncher.manifest ${CMAKE_CURRENT_BINARY_DIR}/WinLauncher.rc)
set_target_properties(WinLauncher PROPERTIES
OUTPUT_NAME ${FILE_NAME}

View File

@@ -0,0 +1,18 @@
<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
<assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'
xmlns:asmv3="urn:schemas-microsoft-com:asm.v3">
<trustInfo>
<security>
<requestedPrivileges>
<requestedExecutionLevel level='asInvoker' uiAccess='false' />
</requestedPrivileges>
</security>
</trustInfo>
<asmv3:application>
<asmv3:windowsSettings xmlns:dpi1="http://schemas.microsoft.com/SMI/2005/WindowsSettings"
xmlns:dpi2="http://schemas.microsoft.com/SMI/2016/WindowsSettings">
<dpi1:dpiAware>true/PM</dpi1:dpiAware>
<dpi2:dpiAwareness>PerMonitorV2, PerMonitor, system</dpi2:dpiAwareness>
</asmv3:windowsSettings>
</asmv3:application>
</assembly>