summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--video/out/opengl/context_wayland.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/video/out/opengl/context_wayland.c b/video/out/opengl/context_wayland.c
index 98d702c386..bf9d90d0e3 100644
--- a/video/out/opengl/context_wayland.c
+++ b/video/out/opengl/context_wayland.c
@@ -123,8 +123,9 @@ static void egl_create_window(struct ra_ctx *ctx)
struct priv *p = ctx->priv;
struct vo_wayland_state *wl = ctx->vo->wl;
- p->egl_window = wl_egl_window_create(wl->surface, mp_rect_w(wl->geometry),
- mp_rect_h(wl->geometry));
+ p->egl_window = wl_egl_window_create(wl->surface,
+ mp_rect_w(wl->geometry) * wl->scaling,
+ mp_rect_h(wl->geometry) * wl->scaling);
p->egl_surface = mpegl_create_window_surface(
p->egl_display, p->egl_config, p->egl_window);