summaryrefslogtreecommitdiffstats
path: root/video/out/vo_wlshm.c
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2023-01-23 14:16:43 -0600
committerDudemanguy <random342@airmail.cc>2023-01-24 00:04:39 +0000
commit879824a47f50f7e93f85992c92d03f37129605f4 (patch)
tree6e69209e1fe4fa0019fe51384ab15d1335f170ec /video/out/vo_wlshm.c
parent006ec9ce4357cd198955bc2e56caec34943db52d (diff)
downloadmpv-879824a47f50f7e93f85992c92d03f37129605f4.tar.bz2
mpv-879824a47f50f7e93f85992c92d03f37129605f4.tar.xz
wayland: add wp-fractional-scale-v1 support
This protocol is pretty important since it finally lets us solve the longstanding issue of fractional scaling in wayland (no more mpv doing rendering over the target resolution and then being scaled down). This protocol also can completely replace the buffer_scale usage that we are currently using for integer scaling so hopefully this can be removed sometime in the future. Note that vo_dmabuf_wayland is omitted from the fractional scale handling because we want the compositor to handle all the scaling for that VO. Fixes #9443.
Diffstat (limited to 'video/out/vo_wlshm.c')
-rw-r--r--video/out/vo_wlshm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/video/out/vo_wlshm.c b/video/out/vo_wlshm.c
index 6f70767b29..44983465da 100644
--- a/video/out/vo_wlshm.c
+++ b/video/out/vo_wlshm.c
@@ -204,6 +204,9 @@ static int resize(struct vo *vo)
p->free_buffers = buf->next;
talloc_free(buf);
}
+
+ vo_wayland_handle_fractional_scale(wl);
+
return mp_sws_reinit(p->sws);
}