diff mbox series

[FFmpeg-devel,2/3] fftools: add DPI awareness manifest

Message ID 20220807151248.15182-2-timo@rothenpieler.org
State Accepted
Commit f85e0673c3a82acd2b267e934c6db3c9da154d86
Headers show
Series [FFmpeg-devel,1/3] configure: always enable gnu_windres if available | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Timo Rothenpieler Aug. 7, 2022, 3:12 p.m. UTC
Some filters, like gdigrab, rely on this to be set to see and report
proper dimensions.
---
 fftools/Makefile         | 3 +++
 fftools/fftools.manifest | 9 +++++++++
 fftools/fftoolsres.rc    | 2 ++
 3 files changed, 14 insertions(+)
 create mode 100644 fftools/fftools.manifest
 create mode 100644 fftools/fftoolsres.rc
diff mbox series

Patch

diff --git a/fftools/Makefile b/fftools/Makefile
index 6285e6eacb..0348ac9cf1 100644
--- a/fftools/Makefile
+++ b/fftools/Makefile
@@ -20,6 +20,9 @@  OBJS-ffmpeg +=                  \
 
 define DOFFTOOL
 OBJS-$(1) += fftools/cmdutils.o fftools/opt_common.o fftools/$(1).o $(OBJS-$(1)-yes)
+ifdef HAVE_GNU_WINDRES
+OBJS-$(1) += fftools/fftoolsres.o
+endif
 $(1)$(PROGSSUF)_g$(EXESUF): $$(OBJS-$(1))
 $$(OBJS-$(1)): | fftools
 $$(OBJS-$(1)): CFLAGS  += $(CFLAGS-$(1))
diff --git a/fftools/fftools.manifest b/fftools/fftools.manifest
new file mode 100644
index 0000000000..f2708ecb13
--- /dev/null
+++ b/fftools/fftools.manifest
@@ -0,0 +1,9 @@ 
+<?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>
+      <dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
+      <dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2</dpiAwareness>
+    </asmv3:windowsSettings>
+  </asmv3:application>
+</assembly>
diff --git a/fftools/fftoolsres.rc b/fftools/fftoolsres.rc
new file mode 100644
index 0000000000..0b8b7c86cb
--- /dev/null
+++ b/fftools/fftoolsres.rc
@@ -0,0 +1,2 @@ 
+#include <windows.h>
+1 RT_MANIFEST fftools.manifest