mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-29 07:06:59 +08:00
wayland: correctly scale configure_bounds
This commit is contained in:
@@ -954,8 +954,8 @@ static void handle_configure_bounds(void *data, struct xdg_toplevel *xdg_topleve
|
||||
int32_t width, int32_t height)
|
||||
{
|
||||
struct vo_wayland_state *wl = data;
|
||||
wl->bounded_width = width;
|
||||
wl->bounded_height = height;
|
||||
wl->bounded_width = width * wl->scaling;
|
||||
wl->bounded_height = height * wl->scaling;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user