From c901866864ac67f372892e7810b220c2bcf75124 Mon Sep 17 00:00:00 2001 From: Greg V Date: Tue, 1 Jan 2019 02:23:39 +0300 Subject: [PATCH] Wayland: Fix window resizing on HiDPI monitors --- gfx/drivers_context/wayland_ctx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gfx/drivers_context/wayland_ctx.c b/gfx/drivers_context/wayland_ctx.c index 01a5e52133..e65569e967 100644 --- a/gfx/drivers_context/wayland_ctx.c +++ b/gfx/drivers_context/wayland_ctx.c @@ -870,8 +870,8 @@ static void gfx_ctx_wl_get_video_size(void *data, { gfx_ctx_wayland_data_t *wl = (gfx_ctx_wayland_data_t*)data; - *width = wl->width; - *height = wl->height; + *width = wl->width * wl->buffer_scale; + *height = wl->height * wl->buffer_scale; } static void gfx_ctx_wl_destroy_resources(gfx_ctx_wayland_data_t *wl)