diff options
author | sfan5 <sfan5@live.de> | 2020-04-11 20:03:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-11 20:03:59 +0200 |
commit | 40df3931d882daaeee42c8de69882b9f9df5c312 (patch) | |
tree | ac8b12c279a164ea619788192494f8ff63da2060 /misc | |
parent | 5cc06e4748a82acb36310fee89e72f30b2b35a36 (diff) | |
download | minetest-40df3931d882daaeee42c8de69882b9f9df5c312.tar.gz minetest-40df3931d882daaeee42c8de69882b9f9df5c312.tar.bz2 minetest-40df3931d882daaeee42c8de69882b9f9df5c312.zip |
Implement DPI scaling for Windows (#9586)
Diffstat (limited to 'misc')
-rw-r--r-- | misc/minetest.exe.manifest | 4 | ||||
-rw-r--r-- | misc/winresource.rc | 6 |
2 files changed, 8 insertions, 2 deletions
diff --git a/misc/minetest.exe.manifest b/misc/minetest.exe.manifest index 3c32b0f8b..18f8c85f4 100644 --- a/misc/minetest.exe.manifest +++ b/misc/minetest.exe.manifest @@ -8,8 +8,8 @@ </security> </trustInfo> <application xmlns="urn:schemas-microsoft-com:asm.v3"> - <windowsSettings> - <dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware> + <windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings"> + <dpiAware>true</dpiAware> </windowsSettings> </application> </assembly> diff --git a/misc/winresource.rc b/misc/winresource.rc index e1e82581b..ffb493873 100644 --- a/misc/winresource.rc +++ b/misc/winresource.rc @@ -1,6 +1,8 @@ #include <windows.h>
+#include <winuser.h>
#include <commctrl.h>
#include <richedit.h>
+
#ifndef USE_CMAKE_CONFIG_H
#define USE_CMAKE_CONFIG_H
#endif
@@ -13,6 +15,10 @@ #define BUILDMODE "RUN_IN_PLACE=0"
#endif
+#ifdef __MINGW32__
+CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "minetest.exe.manifest"
+#endif
+
LANGUAGE 0, SUBLANG_NEUTRAL
130 ICON "minetest-icon.ico"
|