summaryrefslogtreecommitdiffstats
path: root/video/out/vo_wlshm.c
diff options
context:
space:
mode:
authorRay Smith <rsmith@brightsign.biz>2023-02-27 11:12:09 +0000
committerDudemanguy <random342@airmail.cc>2023-02-28 14:53:32 +0000
commit8a43fc0e9ae10741b2ccdb59e370ea1bf5013393 (patch)
tree4101c2527a6526322297b76fd3725f6de5e3267c /video/out/vo_wlshm.c
parent8006ff6cf6af462944cfbb9d4d816e40961a5de1 (diff)
downloadmpv-8a43fc0e9ae10741b2ccdb59e370ea1bf5013393.tar.bz2
mpv-8a43fc0e9ae10741b2ccdb59e370ea1bf5013393.tar.xz
wayland: use bool type for alpha framebuffer tracking
ra_ctx_opts.want_alpha and vo_wayland_set_opaque_region's alpha argument are only used as bool but both are ints. Particularly for the function argument, passing a 0 or 1 is confusing - at first glance it looks like you're specifying an alpha value of 0 or 1. Since they're only used as bools, make them bools.
Diffstat (limited to 'video/out/vo_wlshm.c')
-rw-r--r--video/out/vo_wlshm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/vo_wlshm.c b/video/out/vo_wlshm.c
index 44983465da..2ccdd7d681 100644
--- a/video/out/vo_wlshm.c
+++ b/video/out/vo_wlshm.c
@@ -186,7 +186,7 @@ static int resize(struct vo *vo)
const int32_t height = mp_rect_h(wl->geometry);
struct buffer *buf;
- vo_wayland_set_opaque_region(wl, 0);
+ vo_wayland_set_opaque_region(wl, false);
vo->want_redraw = true;
vo->dwidth = width;
vo->dheight = height;