summaryrefslogtreecommitdiffstats
path: root/video/out
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2023-01-09 19:27:35 -0600
committerDudemanguy <random342@airmail.cc>2023-01-09 19:30:26 -0600
commit4beb1bcae7821d7e0b7d07b6ffb69c4a88572cfe (patch)
tree044dfd321e84b5e79c0225c8494ac396ca61e5d4 /video/out
parent6471afecd0277138efdb3a80dec12dbfff75c72f (diff)
downloadmpv-4beb1bcae7821d7e0b7d07b6ffb69c4a88572cfe.tar.bz2
mpv-4beb1bcae7821d7e0b7d07b6ffb69c4a88572cfe.tar.xz
vo_wlshm: properly support video panscan
Turns out it was already doing this under the hood the entire time. The only catch is that the vo just needed a resize.
Diffstat (limited to 'video/out')
-rw-r--r--video/out/vo_wlshm.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/video/out/vo_wlshm.c b/video/out/vo_wlshm.c
index e3e6f647a0..9b35364c6d 100644
--- a/video/out/vo_wlshm.c
+++ b/video/out/vo_wlshm.c
@@ -209,6 +209,12 @@ static int resize(struct vo *vo)
static int control(struct vo *vo, uint32_t request, void *data)
{
+ switch (request) {
+ case VOCTRL_SET_PANSCAN:
+ resize(vo);
+ return VO_TRUE;
+ }
+
int events = 0;
int ret = vo_wayland_control(vo, &events, request, data);