summaryrefslogtreecommitdiffstats
path: root/video/out/vo_tct.c
diff options
context:
space:
mode:
authorChristoph Heinrich <christoph.heinrich@student.tugraz.at>2023-02-20 04:32:50 +0100
committerDudemanguy <random342@airmail.cc>2023-02-21 17:15:17 +0000
commit91cc0d8cf6a2cf264c243ca3b3e99b5fd4044c29 (patch)
tree448b141d92c9ea7636954213b587aaf380fc21db /video/out/vo_tct.c
parentb9850a6e8c45f95563a703af7f21dfe1c1ee40b6 (diff)
downloadmpv-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_tct.c')
-rw-r--r--video/out/vo_tct.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/video/out/vo_tct.c b/video/out/vo_tct.c
index abe749db13..af7c7ffd48 100644
--- a/video/out/vo_tct.c
+++ b/video/out/vo_tct.c
@@ -52,7 +52,7 @@ struct vo_tct_opts {
int algo;
int width; // 0 -> default
int height; // 0 -> default
- int term256; // 0 -> true color
+ bool term256; // 0 -> true color
};
struct lut_item {
@@ -339,7 +339,7 @@ const struct vo_driver video_out_tct = {
{"half-blocks", ALGO_HALF_BLOCKS})},
{"width", OPT_INT(opts.width)},
{"height", OPT_INT(opts.height)},
- {"256", OPT_FLAG(opts.term256)},
+ {"256", OPT_BOOL(opts.term256)},
{0}
},
.options_prefix = "vo-tct",