Skip to content

Commit 513e340

Browse files
authored
Merge 97dece1 into 7c08cf5
2 parents 7c08cf5 + 97dece1 commit 513e340

2 files changed

Lines changed: 12 additions & 3 deletions

File tree

source/core.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -424,8 +424,6 @@ def main():
424424
"""
425425
log.debug("Core starting")
426426

427-
ctypes.windll.user32.SetProcessDPIAware()
428-
429427
import config
430428
if not globalVars.appArgs.configPath:
431429
globalVars.appArgs.configPath=config.getUserDefaultConfigPath(useInstalledPathIfExists=globalVars.appArgs.launcher)

source/setup.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
RT_MANIFEST = 24
3333
manifest_template = """\
3434
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
35-
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
35+
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"
36+
xmlns:asmv3="urn:schemas-microsoft-com:asm.v3">
3637
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
3738
<security>
3839
<requestedPrivileges>
@@ -63,6 +64,16 @@
6364
/>
6465
</application>
6566
</compatibility>
67+
<asmv3:application>
68+
<asmv3:windowsSettings>
69+
<dpiAware
70+
xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings"
71+
>true/pm</dpiAware>
72+
<dpiAwareness
73+
xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings"
74+
>PerMonitorV2, PerMonitor</dpiAwareness>
75+
</asmv3:windowsSettings>
76+
</asmv3:application>
6677
</assembly>
6778
"""
6879

0 commit comments

Comments
 (0)