Try to fix HIDPI on Windows platform, thanks Gabberworld

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5227 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
scorpio810
2018-02-04 18:32:42 +00:00
parent f1d6d8ca38
commit b308f00b27
3 changed files with 32 additions and 0 deletions

26
qelectrotech.exe.manifest Normal file
View File

@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3">
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0" processorArchitecture="*"
publicKeyToken="6595b64144ccf1df"
language="*">
</assemblyIdentity>
</dependentAssembly>
</dependency>
<asmv3:application>
<asmv3:windowsSettings>
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true/pm</dpiAware>
<!-- fallback for Windows 7 and 8 -->
<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">permonitorv2,permonitor</dpiAwareness>
<!-- falls back to per-monitor if per-monitor v2 is not supported -->
<gdiScaling xmlns="http://schemas.microsoft.com/SMI/2017/WindowsSettings">true</gdiScaling>
<!-- enables GDI DPI scaling -->
</asmv3:windowsSettings>
</asmv3:application>
</assembly>

View File

@@ -30,6 +30,8 @@ win32 {
QET_COMMON_TBT_PATH = 'titleblocks/'
QET_LANG_PATH = 'lang/'
QET_LICENSE_PATH = './'
# Liste des ressources Windows
RC_FILE = qelectrotech.rc
}
macx {
# Chemins MacOS X

4
qelectrotech.rc Normal file
View File

@@ -0,0 +1,4 @@
#include <windows.h>
ID_ICON1 ICON DISCARDABLE "qelectrotech.ico"
1 RT_MANIFEST "qelectrotech.exe.manifest"