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.
This commit is contained in:
Dudemanguy 2023-01-09 19:27:35 -06:00
parent 6471afecd0
commit 4beb1bcae7
1 changed files with 6 additions and 0 deletions

View File

@ -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);