Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions prj/NAppTarget.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -1128,6 +1128,7 @@ function(nap_desktop_app appName dependList nrcMode)
string(TOUPPER ${config} configUpper)
set_target_properties(${appName} PROPERTIES LINK_FLAGS_${configUpper} "/SUBSYSTEM:WINDOWS")
endforeach()
target_sources(${appName} PRIVATE ${CMAKE_SOURCE_DIR}/prj/dpi-aware.manifest)
endif()
set(macOSBundle NO)

Expand Down
9 changes: 9 additions & 0 deletions prj/dpi-aware.manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<application xmlns="urn:schemas-microsoft-com:asm.v3">
<windowsSettings>
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true/PM</dpiAware>
<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2, PerMonitor</dpiAwareness>
</windowsSettings>
</application>
</assembly>