From 4beb1bcae7821d7e0b7d07b6ffb69c4a88572cfe Mon Sep 17 00:00:00 2001 From: Dudemanguy Date: Mon, 9 Jan 2023 19:27:35 -0600 Subject: [PATCH] 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. --- video/out/vo_wlshm.c | 6 ++++++ 1 file changed, 6 insertions(+) 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);