From d89add6eb287577b1a9c91281472b6b70df30fff Mon Sep 17 00:00:00 2001 From: nanahi <130121847+na-na-hi@users.noreply.github.com> Date: Sun, 5 Oct 2025 13:00:01 -0400 Subject: [PATCH] screenshot: add osd and scaled flags to screenshot commands Currently, screenshot being scaled and the presence of OSD and subtitles cannot be independently controlled. This adds osd and scaled flags to screenshot commands that make it possible to e.g. take screenshots with only OSD without subtitles, or take screenshots at scaled resolution without OSD or subtitles. The "window" flag is now an alias of scaled+subtitles+osd, and is kept for convenience. --- DOCS/interface-changes/screenshot-flags.txt | 1 + DOCS/man/input.rst | 20 ++++++++---- player/command.c | 25 ++++++++------ player/screenshot.c | 36 ++++++++++++--------- 4 files changed, 51 insertions(+), 31 deletions(-) create mode 100644 DOCS/interface-changes/screenshot-flags.txt diff --git a/DOCS/interface-changes/screenshot-flags.txt b/DOCS/interface-changes/screenshot-flags.txt new file mode 100644 index 0000000000..0ee8556b4b --- /dev/null +++ b/DOCS/interface-changes/screenshot-flags.txt @@ -0,0 +1 @@ +add `scaled` and `osd` flags to screenshot commands diff --git a/DOCS/man/input.rst b/DOCS/man/input.rst index a4307c8146..80dc88de71 100644 --- a/DOCS/man/input.rst +++ b/DOCS/man/input.rst @@ -1419,16 +1419,21 @@ Screenshot Commands Multiple flags are available (some can be combined with ``+``): +