summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--DOCS/interface-changes.rst1
-rw-r--r--DOCS/man/options.rst4
-rw-r--r--video/out/aspect.c2
3 files changed, 3 insertions, 4 deletions
diff --git a/DOCS/interface-changes.rst b/DOCS/interface-changes.rst
index a0ce65a792..cef7d4d55b 100644
--- a/DOCS/interface-changes.rst
+++ b/DOCS/interface-changes.rst
@@ -41,6 +41,7 @@ Interface changes
- add `playlist-path` and `playlist/N/playlist-path` properties
- add `--x11-wid-title` option
- add `--libplacebo-opts` option
+ - change `--video-pan-x/y` to be relative to the destination rectangle
--- mpv 0.36.0 ---
- add `--target-contrast`
- Target luminance value is now also applied when ICC profile is used.
diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst
index cac04fcef7..c5da25fba2 100644
--- a/DOCS/man/options.rst
+++ b/DOCS/man/options.rst
@@ -1539,9 +1539,7 @@ Video
``--video-pan-x=<value>``, ``--video-pan-y=<value>``
Moves the displayed video rectangle by the given value in the X or Y
- direction. The unit is in fractions of the size of the scaled video (the
- full size, even if parts of the video are not visible due to panscan or
- other options).
+ direction. The unit is in fractions of the size of the destination rectangle.
For example, displaying a 1280x720 video fullscreen on a 1680x1050 screen
with ``--video-pan-x=-0.1`` would move the video 168 pixels to the left
diff --git a/video/out/aspect.c b/video/out/aspect.c
index b3e91fd73c..5317481765 100644
--- a/video/out/aspect.c
+++ b/video/out/aspect.c
@@ -88,7 +88,7 @@ static void src_dst_split_scaling(int src_size, int dst_size,
*src_start = 0;
*src_end = src_size;
- *dst_start = (dst_size - scaled_src_size) * align + pan * scaled_src_size;
+ *dst_start = (dst_size - scaled_src_size) * align + pan * dst_size;
*dst_end = *dst_start + scaled_src_size;
// Distance of screen frame to video