From 91cc0d8cf6a2cf264c243ca3b3e99b5fd4044c29 Mon Sep 17 00:00:00 2001 From: Christoph Heinrich Date: Mon, 20 Feb 2023 04:32:50 +0100 Subject: options: transition options from OPT_FLAG to OPT_BOOL c78482045444c488bb7948305d583a55d17cd236 introduced a bool option type as a replacement for the flag type, but didn't actually transition and remove the flag type because it would have been too much mundane work. --- video/out/opengl/context_angle.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'video/out/opengl/context_angle.c') diff --git a/video/out/opengl/context_angle.c b/video/out/opengl/context_angle.c index 2784026d1d..ccdca9ff4f 100644 --- a/video/out/opengl/context_angle.c +++ b/video/out/opengl/context_angle.c @@ -53,7 +53,7 @@ struct angle_opts { int d3d11_warp; int d3d11_feature_level; int egl_windowing; - int flip; + bool flip; }; #define OPT_BASE_STRUCT struct angle_opts @@ -76,7 +76,7 @@ const struct m_sub_options angle_conf = { {"auto", -1}, {"no", 0}, {"yes", 1})}, - {"angle-flip", OPT_FLAG(flip)}, + {"angle-flip", OPT_BOOL(flip)}, {"angle-max-frame-latency", OPT_REPLACED("swapchain-depth")}, {"angle-swapchain-length", OPT_REMOVED("controlled by --swapchain-depth")}, {0} @@ -86,7 +86,7 @@ const struct m_sub_options angle_conf = { .d3d11_warp = -1, .d3d11_feature_level = D3D_FEATURE_LEVEL_11_0, .egl_windowing = -1, - .flip = 1, + .flip = true, }, .size = sizeof(struct angle_opts), }; -- cgit v1.2.3