summaryrefslogtreecommitdiff
path: root/pkg/mpv/patch/0006-Revert-wayland-fix-missing-lround-in-cursor-surface.patch
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2024-08-14 20:37:12 -0700
committerMichael Forney <mforney@mforney.org>2024-08-15 01:09:25 -0700
commit0bbe257a92854aa65dfc5fa1aaa321c9b42c8043 (patch)
tree75e4dbba9c328e732b8804ad048f561a0117de1b /pkg/mpv/patch/0006-Revert-wayland-fix-missing-lround-in-cursor-surface.patch
parent559deaa755f18455fbcdaf3ce1474214811f8c8f (diff)
mpv: Update to 0.38.0
Diffstat (limited to 'pkg/mpv/patch/0006-Revert-wayland-fix-missing-lround-in-cursor-surface.patch')
-rw-r--r--pkg/mpv/patch/0006-Revert-wayland-fix-missing-lround-in-cursor-surface.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/pkg/mpv/patch/0006-Revert-wayland-fix-missing-lround-in-cursor-surface.patch b/pkg/mpv/patch/0006-Revert-wayland-fix-missing-lround-in-cursor-surface.patch
new file mode 100644
index 00000000..86914d8a
--- /dev/null
+++ b/pkg/mpv/patch/0006-Revert-wayland-fix-missing-lround-in-cursor-surface.patch
@@ -0,0 +1,26 @@
+From 2415a57a73ff5cdf9dab16a77a7917ca726ae109 Mon Sep 17 00:00:00 2001
+From: Michael Forney <mforney@mforney.org>
+Date: Wed, 14 Aug 2024 22:51:59 -0700
+Subject: [PATCH] Revert "wayland: fix missing lround in cursor surface"
+
+This reverts commit c1029aaa820de8193e2a466039d2acccca610fd6.
+---
+ video/out/wayland_common.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c
+index 5c4cccf3ef..edcc922122 100644
+--- a/video/out/wayland_common.c
++++ b/video/out/wayland_common.c
+@@ -2010,7 +2010,7 @@ static int set_cursor_visibility(struct vo_wayland_seat *s, bool on)
+ wl_pointer_set_cursor(s->pointer, s->pointer_enter_serial, wl->cursor_surface,
+ img->hotspot_x / scale, img->hotspot_y / scale);
+ wp_viewport_set_destination(wl->cursor_viewport, lround(img->width / scale),
+- lround(img->height / scale));
++ 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);
+ }
+--
+2.44.0
+