diff options
author | Dudemanguy <random342@airmail.cc> | 2021-06-27 10:43:13 -0500 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2021-06-27 10:58:59 -0500 |
commit | a02901cae77c86fb9de997a418296d1fc0e3eada (patch) | |
tree | 372bc58c179be34c744851e3bff71afbc8edaeb8 /video/out/opengl/context_wayland.c | |
parent | 76bddaccd63ee60245881dc188d3e15356f093f1 (diff) | |
download | mpv-a02901cae77c86fb9de997a418296d1fc0e3eada.tar.bz2 mpv-a02901cae77c86fb9de997a418296d1fc0e3eada.tar.xz |
wayland: fix wl_surface_set_buffer_scale usage
The wl_surface lives for the entire lifetime of the vo. It's only
neccesary to set the scale initially and when the output scaling changes
(the surface moves to a different output with a different scale or the
output itself changes it scale). All of the calls that were being made
in the egl/vulkan resize functions are not needed. vo_wlshm wasn't
correctly rescaling itself before this commit since it had no logic to
handle scale changes. This should all be shared, common code in the
surface/output listeners.
Diffstat (limited to 'video/out/opengl/context_wayland.c')
-rw-r--r-- | video/out/opengl/context_wayland.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/video/out/opengl/context_wayland.c b/video/out/opengl/context_wayland.c index 713ea8a36f..b402ca9055 100644 --- a/video/out/opengl/context_wayland.c +++ b/video/out/opengl/context_wayland.c @@ -47,8 +47,6 @@ static void resize(struct ra_ctx *ctx) const int32_t height = wl->scaling * mp_rect_h(wl->geometry); vo_wayland_set_opaque_region(wl, ctx->opts.want_alpha); - wl_surface_set_buffer_scale(wl->surface, wl->scaling); - if (p->egl_window) wl_egl_window_resize(p->egl_window, width, height, 0, 0); |