[qet] qet/qet: [5227] Try to fix HIDPI on Windows platform, thanks Gabberworld |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/qet Archives
]
Revision: 5227
Author: scorpio810
Date: 2018-02-04 19:32:42 +0100 (Sun, 04 Feb 2018)
Log Message:
-----------
Try to fix HIDPI on Windows platform, thanks Gabberworld
Modified Paths:
--------------
trunk/qelectrotech.pro
Added Paths:
-----------
trunk/qelectrotech.exe.manifest
trunk/qelectrotech.rc
Added: trunk/qelectrotech.exe.manifest
===================================================================
--- trunk/qelectrotech.exe.manifest (rev 0)
+++ trunk/qelectrotech.exe.manifest 2018-02-04 18:32:42 UTC (rev 5227)
@@ -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>
Modified: trunk/qelectrotech.pro
===================================================================
--- trunk/qelectrotech.pro 2018-02-03 03:06:58 UTC (rev 5226)
+++ trunk/qelectrotech.pro 2018-02-04 18:32:42 UTC (rev 5227)
@@ -30,6 +30,8 @@
QET_COMMON_TBT_PATH = 'titleblocks/'
QET_LANG_PATH = 'lang/'
QET_LICENSE_PATH = './'
+ # Liste des ressources Windows
+ RC_FILE = qelectrotech.rc
}
macx {
# Chemins MacOS X
Added: trunk/qelectrotech.rc
===================================================================
--- trunk/qelectrotech.rc (rev 0)
+++ trunk/qelectrotech.rc 2018-02-04 18:32:42 UTC (rev 5227)
@@ -0,0 +1,4 @@
+#include <windows.h>
+
+ID_ICON1 ICON DISCARDABLE "qelectrotech.ico"
+1 RT_MANIFEST "qelectrotech.exe.manifest"