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/gpu/context.h | |
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/gpu/context.h')
-rw-r--r-- | video/out/gpu/context.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/gpu/context.h b/video/out/gpu/context.h index a7510c2afd..8ad77a6698 100644 --- a/video/out/gpu/context.h +++ b/video/out/gpu/context.h @@ -7,7 +7,7 @@ struct ra_ctx_opts { bool allow_sw; // allow software renderers - int want_alpha; // create an alpha framebuffer if possible + bool want_alpha; // create an alpha framebuffer if possible bool debug; // enable debugging layers/callbacks etc. bool probing; // the backend was auto-probed char *context_name; // filter by `ra_ctx_fns.name` |