summaryrefslogtreecommitdiffstats
path: root/video/out/wayland_common.h
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/wayland_common.h
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/wayland_common.h')
-rw-r--r--video/out/wayland_common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/wayland_common.h b/video/out/wayland_common.h
index a518b8b93f..80d0835fab 100644
--- a/video/out/wayland_common.h
+++ b/video/out/wayland_common.h
@@ -171,7 +171,7 @@ int vo_wayland_allocate_memfd(struct vo *vo, size_t size);
int vo_wayland_control(struct vo *vo, int *events, int request, void *arg);
void vo_wayland_handle_fractional_scale(struct vo_wayland_state *wl);
-void vo_wayland_set_opaque_region(struct vo_wayland_state *wl, int alpha);
+void vo_wayland_set_opaque_region(struct vo_wayland_state *wl, bool alpha);
void vo_wayland_sync_swap(struct vo_wayland_state *wl);
void vo_wayland_uninit(struct vo *vo);
void vo_wayland_wait_events(struct vo *vo, int64_t until_time_us);