mirror of
https://github.com/mpv-player/mpv
synced 2025-02-16 12:17:12 +00:00
wayland: correctly scale configure_bounds
This commit is contained in:
parent
cbbe2e5221
commit
d65e56216d
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user