diff options
author | Christoph Heinrich <christoph.heinrich@student.tugraz.at> | 2023-02-20 04:32:50 +0100 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-02-21 17:15:17 +0000 |
commit | 91cc0d8cf6a2cf264c243ca3b3e99b5fd4044c29 (patch) | |
tree | 448b141d92c9ea7636954213b587aaf380fc21db /video/out/vo_direct3d.c | |
parent | b9850a6e8c45f95563a703af7f21dfe1c1ee40b6 (diff) | |
download | mpv-91cc0d8cf6a2cf264c243ca3b3e99b5fd4044c29.tar.bz2 mpv-91cc0d8cf6a2cf264c243ca3b3e99b5fd4044c29.tar.xz |
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.
Diffstat (limited to 'video/out/vo_direct3d.c')
-rw-r--r-- | video/out/vo_direct3d.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/video/out/vo_direct3d.c b/video/out/vo_direct3d.c index 74e5f7b1fe..2fe26db173 100644 --- a/video/out/vo_direct3d.c +++ b/video/out/vo_direct3d.c @@ -80,12 +80,12 @@ struct d3dtex { typedef struct d3d_priv { struct mp_log *log; - int opt_disable_texture_align; + bool opt_disable_texture_align; // debugging - int opt_force_power_of_2; + bool opt_force_power_of_2; int opt_texture_memory; - int opt_swap_discard; - int opt_exact_backbuffer; + bool opt_swap_discard; + bool opt_exact_backbuffer; struct vo *vo; @@ -1222,16 +1222,16 @@ static void draw_osd(struct vo *vo) #define OPT_BASE_STRUCT d3d_priv static const struct m_option opts[] = { - {"force-power-of-2", OPT_FLAG(opt_force_power_of_2)}, - {"disable-texture-align", OPT_FLAG(opt_disable_texture_align)}, + {"force-power-of-2", OPT_BOOL(opt_force_power_of_2)}, + {"disable-texture-align", OPT_BOOL(opt_disable_texture_align)}, {"texture-memory", OPT_CHOICE(opt_texture_memory, {"default", 0}, {"managed", 1}, {"default-pool", 2}, {"default-pool-shadow", 3}, {"scratch", 4})}, - {"swap-discard", OPT_FLAG(opt_swap_discard)}, - {"exact-backbuffer", OPT_FLAG(opt_exact_backbuffer)}, + {"swap-discard", OPT_BOOL(opt_swap_discard)}, + {"exact-backbuffer", OPT_BOOL(opt_exact_backbuffer)}, {0} }; |