aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2014-11-12 08:09:20 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2014-11-12 08:09:20 +0000
commit692b3584b95fa4ed31140e1c1aca02af8eea43fd (patch)
tree55420aadccd45e0024022cc8c4d4ab7124c47d6d
parent9fbb5576a5ce78eb9cae67f50998fca11f30186e (diff)
win32: added manifest to make sylpheed.exe dpi-aware.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3441 ee746299-78ed-0310-b773-934348b2243d
-rw-r--r--ChangeLog7
-rw-r--r--src/Makefile.am3
-rw-r--r--src/sylpheed.exe.manifest12
-rw-r--r--src/sylpheed.rc.in4
4 files changed, 25 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 177651e2..c65be726 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2014-11-12
+
+ * src/sylpheed.rc.in
+ src/Makefile.am
+ src/sylpheed.exe.manifest: win32: added manifest to make
+ sylpheed.exe dpi-aware.
+
2014-11-11
* src/logwindow.c
diff --git a/src/Makefile.am b/src/Makefile.am
index ef567861..03d381b3 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -135,6 +135,7 @@ EXTRA_DIST = \
plugin-marshal.list \
version.h.in \
sylpheed.rc.in \
+ sylpheed.exe.manifest \
libsylpheed-plugin-0.def
INCLUDES = \
@@ -146,7 +147,7 @@ INCLUDES = \
if NATIVE_WIN32
SYLPHEED_RES = sylpheed.res
-sylpheed.res: sylpheed.rc icons/sylpheed.ico
+sylpheed.res: sylpheed.rc icons/sylpheed.ico sylpheed.exe.manifest
$(WINDRES) $< -O coff -o $@
else
SYLPHEED_RES =
diff --git a/src/sylpheed.exe.manifest b/src/sylpheed.exe.manifest
new file mode 100644
index 00000000..1d0f12b4
--- /dev/null
+++ b/src/sylpheed.exe.manifest
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
+ <assemblyIdentity version="1.0.0.0"
+ processorArchitecture="*"
+ name="Sylpheed"
+ type="win32"/>
+ <asmv3:application xmlns:asmv3="urn:schemas-microsoft-com:asm.v3">
+ <asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
+ <dpiAware>true</dpiAware>
+ </asmv3:windowsSettings>
+ </asmv3:application>
+</assembly>
diff --git a/src/sylpheed.rc.in b/src/sylpheed.rc.in
index 9b456127..dbd6f4b5 100644
--- a/src/sylpheed.rc.in
+++ b/src/sylpheed.rc.in
@@ -28,3 +28,7 @@ BEGIN
END
SYLPHEED ICON icons/sylpheed.ico
+
+#include <winuser.h>
+
+CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST sylpheed.exe.manifest