summaryrefslogtreecommitdiffstats
path: root/video/out
diff options
context:
space:
mode:
Diffstat (limited to 'video/out')
-rw-r--r--video/out/vo_dmabuf_wayland.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/video/out/vo_dmabuf_wayland.c b/video/out/vo_dmabuf_wayland.c
index a241ef1763..35a4dac464 100644
--- a/video/out/vo_dmabuf_wayland.c
+++ b/video/out/vo_dmabuf_wayland.c
@@ -695,10 +695,7 @@ done:
if (!vo_wayland_reconfig(vo))
return VO_ERROR;
- // mpv rotates clockwise but the wayland spec has counter-clockwise rotations
- // swap 1 and 3 to match mpv's direction
- int transform = (360 - img->params.rotate) % 360 / 90;
- wl_surface_set_buffer_transform(vo->wl->video_surface, transform);
+ wl_surface_set_buffer_transform(vo->wl->video_surface, img->params.rotate / 90);
// Immediately destroy all buffers if params change.
destroy_buffers(vo);