diff options
author | Dudemanguy <random342@airmail.cc> | 2023-01-08 14:02:13 -0600 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-01-08 20:42:42 +0000 |
commit | 8439c084e10fdcb60eb7c3f8f393a33d256f2e41 (patch) | |
tree | 6ae887fd1fd4bc245283fb2ff42348237079644b /video/out/vulkan | |
parent | d73fc7912a46d4cb9c3e07f01f5ae2d64e7d9ff5 (diff) | |
download | mpv-8439c084e10fdcb60eb7c3f8f393a33d256f2e41.tar.bz2 mpv-8439c084e10fdcb60eb7c3f8f393a33d256f2e41.tar.xz |
wayland: make vo_wayland_reconfig a bool
This was already returning true/false but the type was int. Also
simplify a few places in the wayland contexts where we can just return
the value of this function instead of doing redundant checks.
Diffstat (limited to 'video/out/vulkan')
-rw-r--r-- | video/out/vulkan/context_wayland.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/video/out/vulkan/context_wayland.c b/video/out/vulkan/context_wayland.c index fe20336a9e..fb6d91dacd 100644 --- a/video/out/vulkan/context_wayland.c +++ b/video/out/vulkan/context_wayland.c @@ -123,10 +123,7 @@ static bool resize(struct ra_ctx *ctx) static bool wayland_vk_reconfig(struct ra_ctx *ctx) { - if (!vo_wayland_reconfig(ctx->vo)) - return false; - - return true; + return vo_wayland_reconfig(ctx->vo); } static int wayland_vk_control(struct ra_ctx *ctx, int *events, int request, void *arg) |