diff options
author | Dudemanguy <random342@airmail.cc> | 2024-03-04 10:00:53 -0600 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2024-03-04 22:42:46 +0100 |
commit | c1029aaa820de8193e2a466039d2acccca610fd6 (patch) | |
tree | 9ccd895428e0625645cfeedace1951117849c903 | |
parent | 781f78fb3a0457aea8084f94feeeb69978a02a71 (diff) | |
download | mpv-c1029aaa820de8193e2a466039d2acccca610fd6.tar.bz2 mpv-c1029aaa820de8193e2a466039d2acccca610fd6.tar.xz |
wayland: fix missing lround in cursor surface
Missed in f0a6578259f508a8863afcf9a1487872d7ae1878.
-rw-r--r-- | video/out/wayland_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c index 52d5e90f88..6fa5da1ca0 100644 --- a/video/out/wayland_common.c +++ b/video/out/wayland_common.c @@ -1984,7 +1984,7 @@ static int set_cursor_visibility(struct vo_wayland_seat *s, bool on) wl_pointer_set_cursor(s->pointer, s->pointer_serial, wl->cursor_surface, img->hotspot_x / scale, img->hotspot_y / scale); wp_viewport_set_destination(wl->cursor_viewport, lround(img->width / scale), - img->height / scale); + lround(img->height / scale)); wl_surface_attach(wl->cursor_surface, buffer, 0, 0); wl_surface_damage_buffer(wl->cursor_surface, 0, 0, img->width, img->height); } |