mirror of
https://github.com/libretro/RetroArch
synced 2025-04-07 13:23:32 +00:00
Fix wrong toplevel geometry
This commit is contained in:
parent
cd8bf003d1
commit
fbcab67d8b
@ -571,11 +571,7 @@ static void handle_toplevel_config(void *data, struct xdg_toplevel *toplevel,
|
|||||||
{
|
{
|
||||||
gfx_ctx_wayland_data_t *wl = (gfx_ctx_wayland_data_t*)data;
|
gfx_ctx_wayland_data_t *wl = (gfx_ctx_wayland_data_t*)data;
|
||||||
|
|
||||||
wl->width = wl->buffer_scale * width;
|
// TODO: implement resizing
|
||||||
wl->height = wl->buffer_scale * height;
|
|
||||||
|
|
||||||
RARCH_LOG("[Wayland]: Surface configure: %u x %u.\n",
|
|
||||||
wl->width, wl->height);
|
|
||||||
|
|
||||||
wl->configured = false;
|
wl->configured = false;
|
||||||
}
|
}
|
||||||
@ -1338,7 +1334,8 @@ static bool gfx_ctx_wl_set_video_mode(void *data,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO: fullscreen;
|
if (fullscreen)
|
||||||
|
xdg_toplevel_set_fullscreen(wl->xdg_toplevel, NULL);
|
||||||
|
|
||||||
flush_wayland_fd(&wl->input);
|
flush_wayland_fd(&wl->input);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user