Просмотр исходного кода

dpiAware true for win32 manifest files

Simon Armstrong 8 лет назад
Родитель
Сommit
366ef478d5

+ 2 - 0
mod/maxgui.mod/xpmanifest.mod/resources/compile.cmd

@@ -0,0 +1,2 @@
+@echo off
+windres -o ../xpmanifest.o resources.rc

+ 4 - 0
mod/maxgui.mod/xpmanifest.mod/resources/resources.rc

@@ -0,0 +1,4 @@
+#define RT_MANIFEST	24
+#define MANIFEST_ID	1
+
+MANIFEST_ID		RT_MANIFEST	"xp.manifest"

+ 27 - 0
mod/maxgui.mod/xpmanifest.mod/resources/xp.manifest

@@ -0,0 +1,27 @@
+
+
+<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
+<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" >
+  <asmv3:application>
+    <asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
+      <dpiAware>true</dpiAware>
+    </asmv3:windowsSettings>
+  </asmv3:application>
+    <assemblyIdentity
+        version="1.0.0.0"
+        processorArchitecture="X86"
+        name="BRL.BlitzMax.MaxGUI"
+        type="win32" />
+    <description>MaxGUI</description>
+    <dependency>
+        <dependentAssembly>
+            <assemblyIdentity
+                type="win32"
+                name="Microsoft.Windows.Common-Controls"
+                version="6.0.0.0"
+                processorArchitecture="X86"
+                publicKeyToken="6595b64144ccf1df"
+                language="*" />
+        </dependentAssembly>
+    </dependency>
+</assembly>

BIN
mod/maxgui.mod/xpmanifest.mod/xpmanifest.o


BIN
src/maxide/maxicons.o


+ 2 - 0
src/maxide/resources/compile.cmd

@@ -0,0 +1,2 @@
+@echo off
+windres -o ../maxicons.o resources.rc

BIN
src/maxide/resources/main_icon.ico


+ 25 - 0
src/maxide/resources/maxide.manifest

@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
+<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" >
+  <asmv3:application>
+    <asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
+      <dpiAware>true</dpiAware>
+    </asmv3:windowsSettings>
+  </asmv3:application>
+    <assemblyIdentity
+        version="1.0.0.0"
+        processorArchitecture="X86"
+        name="BRL.BlitzMax.MaxIDE"
+        type="win32" />
+    <description>MaxIDE</description>
+    <dependency>
+        <dependentAssembly>
+            <assemblyIdentity
+                type="win32"
+                name="Microsoft.Windows.Common-Controls"
+                version="6.0.0.0"
+                processorArchitecture="X86"
+                publicKeyToken="6595b64144ccf1df"
+                language="*" />
+        </dependentAssembly>
+    </dependency>
+</assembly>

+ 6 - 0
src/maxide/resources/resources.rc

@@ -0,0 +1,6 @@
+#define RT_MANIFEST	24
+#define MANIFEST_ID	1
+#define MAIN_ICON_ID	101
+
+MANIFEST_ID		RT_MANIFEST	"maxide.manifest"
+MAIN_ICON_ID		ICON			"main_icon.ico"