diff options
author | Dudemanguy <random342@airmail.cc> | 2023-01-23 14:16:43 -0600 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-01-24 00:04:39 +0000 |
commit | 879824a47f50f7e93f85992c92d03f37129605f4 (patch) | |
tree | 6e69209e1fe4fa0019fe51384ab15d1335f170ec /video/out/vulkan | |
parent | 006ec9ce4357cd198955bc2e56caec34943db52d (diff) | |
download | mpv-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/vulkan')
-rw-r--r-- | video/out/vulkan/context_wayland.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/vulkan/context_wayland.c b/video/out/vulkan/context_wayland.c index 157c76855c..5ca6265a91 100644 --- a/video/out/vulkan/context_wayland.c +++ b/video/out/vulkan/context_wayland.c @@ -118,6 +118,7 @@ static bool resize(struct ra_ctx *ctx) const int32_t height = mp_rect_h(wl->geometry); vo_wayland_set_opaque_region(wl, ctx->opts.want_alpha); + vo_wayland_handle_fractional_scale(wl); return ra_vk_ctx_resize(ctx, width, height); } |