Skip to content

Commit

Permalink
Merge 97dece1 into 7c08cf5
Browse files Browse the repository at this point in the history
  • Loading branch information
VeselovAlex committed Jul 17, 2022
2 parents 7c08cf5 + 97dece1 commit 513e340
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 0 additions & 2 deletions source/core.py
Expand Up @@ -424,8 +424,6 @@ def main():
"""
log.debug("Core starting")

ctypes.windll.user32.SetProcessDPIAware()

import config
if not globalVars.appArgs.configPath:
globalVars.appArgs.configPath=config.getUserDefaultConfigPath(useInstalledPathIfExists=globalVars.appArgs.launcher)
Expand Down
13 changes: 12 additions & 1 deletion source/setup.py
Expand Up @@ -32,7 +32,8 @@
RT_MANIFEST = 24
manifest_template = """\
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"
xmlns:asmv3="urn:schemas-microsoft-com:asm.v3">
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
Expand Down Expand Up @@ -63,6 +64,16 @@
/>
</application>
</compatibility>
<asmv3:application>
<asmv3: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>
</asmv3:windowsSettings>
</asmv3:application>
</assembly>
"""

Expand Down

0 comments on commit 513e340

Please sign in to comment.