[FFmpeg-cvslog] fftools: add DPI awareness manifest
Timo Rothenpieler
git at videolan.org
Sat Aug 13 16:35:11 EEST 2022
ffmpeg | branch: master | Timo Rothenpieler <timo at rothenpieler.org> | Sun Aug 7 15:28:24 2022 +0200| [f85e0673c3a82acd2b267e934c6db3c9da154d86] | committer: Timo Rothenpieler
fftools: add DPI awareness manifest
Some filters, like gdigrab, rely on this to be set to see and report
proper dimensions.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f85e0673c3a82acd2b267e934c6db3c9da154d86
---
fftools/Makefile | 3 +++
fftools/fftools.manifest | 9 +++++++++
fftools/fftoolsres.rc | 2 ++
3 files changed, 14 insertions(+)
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
More information about the ffmpeg-cvslog
mailing list