summaryrefslogtreecommitdiff
path: root/fftools
diff options
context:
space:
mode:
authorTimo Rothenpieler <timo@rothenpieler.org>2022-08-07 15:28:24 +0200
committerTimo Rothenpieler <timo@rothenpieler.org>2022-08-13 14:42:52 +0200
commitf85e0673c3a82acd2b267e934c6db3c9da154d86 (patch)
treebe15bffa07fd4152ff8f90b52a1235d12b2eb747 /fftools
parentb77fff47d0d60434a48b6877ed72a71ebf53858a (diff)
downloadffmpeg-f85e0673c3a82acd2b267e934c6db3c9da154d86.tar.gz
fftools: add DPI awareness manifest
Some filters, like gdigrab, rely on this to be set to see and report proper dimensions.
Diffstat (limited to 'fftools')
-rw-r--r--fftools/Makefile3
-rw-r--r--fftools/fftools.manifest9
-rw-r--r--fftools/fftoolsres.rc2
3 files changed, 14 insertions, 0 deletions
diff --git a/fftools/Makefile b/fftools/Makefile
index 5907f5c57e..ff70b1170d 100644
--- a/fftools/Makefile
+++ b/fftools/Makefile
@@ -21,6 +21,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