mirror of
https://github.com/libretro/RetroArch
synced 2025-01-31 06:32:48 +00:00
Merge pull request #7855 from myfreeweb/wayland-hidpi-resize
Wayland: Fix window resizing on HiDPI monitors
This commit is contained in:
commit
eaef091915
@ -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;
|
gfx_ctx_wayland_data_t *wl = (gfx_ctx_wayland_data_t*)data;
|
||||||
|
|
||||||
*width = wl->width;
|
*width = wl->width * wl->buffer_scale;
|
||||||
*height = wl->height;
|
*height = wl->height * wl->buffer_scale;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void gfx_ctx_wl_destroy_resources(gfx_ctx_wayland_data_t *wl)
|
static void gfx_ctx_wl_destroy_resources(gfx_ctx_wayland_data_t *wl)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user