Skip to content

Commit 78206be

Browse files
committed
Prevent Windows from scaling with high dpi
1 parent b3afd46 commit 78206be

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

engine/source/resources/TSE.manifest

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2+
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3">
3+
<asmv3:application>
4+
<asmv3:windowsSettings>
5+
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
6+
<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2</dpiAwareness>
7+
</asmv3:windowsSettings>
8+
</asmv3:application>
9+
</assembly>

tools/cmake/marbleblast.cmake

+2
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,8 @@ if(WIN32)
187187
addPath("${srcDir}/resources")
188188
# add windows rc file for the icon
189189
addFile("${srcDir}/resources/TSE.rc")
190+
# set dpi awareness to prevent scaling
191+
addFile("${srcDir}/resources/TSE.manifest")
190192
endif()
191193

192194
if(APPLE)

0 commit comments

Comments
 (0)