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_kitty.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_kitty.c')
-rw-r--r-- | video/out/vo_kitty.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/video/out/vo_kitty.c b/video/out/vo_kitty.c index 6a511c8c8e..7d548c7c34 100644 --- a/video/out/vo_kitty.c +++ b/video/out/vo_kitty.c @@ -79,8 +79,8 @@ static inline void write_str(const char *s) struct vo_kitty_opts { int width, height, top, left, rows, cols; - int config_clear, alt_screen; - int use_shm; + bool config_clear, alt_screen; + bool use_shm; }; struct priv { @@ -414,8 +414,8 @@ const struct vo_driver video_out_kitty = { .priv_size = sizeof(struct priv), .priv_defaults = &(const struct priv) { .shm_fd = -1, - .opts.config_clear = 1, - .opts.alt_screen = 1, + .opts.config_clear = true, + .opts.alt_screen = true, }, .options = (const m_option_t[]) { {"width", OPT_INT(opts.width)}, @@ -424,9 +424,9 @@ const struct vo_driver video_out_kitty = { {"left", OPT_INT(opts.left)}, {"rows", OPT_INT(opts.rows)}, {"cols", OPT_INT(opts.cols)}, - {"config-clear", OPT_FLAG(opts.config_clear), }, - {"alt-screen", OPT_FLAG(opts.alt_screen), }, - {"use-shm", OPT_FLAG(opts.use_shm), }, + {"config-clear", OPT_BOOL(opts.config_clear), }, + {"alt-screen", OPT_BOOL(opts.alt_screen), }, + {"use-shm", OPT_BOOL(opts.use_shm), }, {0} }, .options_prefix = "vo-kitty", |