diff options
author | Ray Smith <rsmith@brightsign.biz> | 2023-02-27 11:12:09 +0000 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-02-28 14:53:32 +0000 |
commit | 8a43fc0e9ae10741b2ccdb59e370ea1bf5013393 (patch) | |
tree | 4101c2527a6526322297b76fd3725f6de5e3267c /video/out/wayland_common.c | |
parent | 8006ff6cf6af462944cfbb9d4d816e40961a5de1 (diff) | |
download | mpv-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.c')
-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 efa00075f9..ba34273f39 100644 --- a/video/out/wayland_common.c +++ b/video/out/wayland_common.c @@ -2242,7 +2242,7 @@ bool vo_wayland_reconfig(struct vo *vo) return true; } -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) { const int32_t width = mp_rect_w(wl->geometry); const int32_t height = mp_rect_h(wl->geometry); |