diff options
author | wm4 <wm4@nowhere> | 2013-09-25 21:40:35 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-09-25 21:40:35 +0200 |
commit | 1e4f08c50cc5e3abb61c95903a270c8e281d2e5b (patch) | |
tree | c2fec85d465af2eb4197c8e117708afe45304b60 /mpvcore/options.c | |
parent | 4e6751609ee1798539c0338ac930bdb4b1e80242 (diff) | |
download | mpv-1e4f08c50cc5e3abb61c95903a270c8e281d2e5b.tar.bz2 mpv-1e4f08c50cc5e3abb61c95903a270c8e281d2e5b.tar.xz |
options: make --ass-hinting a choice, instead of using magic numbers
options.c still doesn't use the constants defined by the libass headers,
but it's still better than exposing those to the user directly.
Diffstat (limited to 'mpvcore/options.c')
-rw-r--r-- | mpvcore/options.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mpvcore/options.c b/mpvcore/options.c index 79d91c1b04..521b30e7d4 100644 --- a/mpvcore/options.c +++ b/mpvcore/options.c @@ -538,7 +538,8 @@ const m_option_t mp_opts[] = { OPT_FLAG("embeddedfonts", use_embedded_fonts, 0), OPT_STRINGLIST("ass-force-style", ass_force_style_list, 0), OPT_STRING("ass-styles", ass_styles_file, 0), - OPT_INTRANGE("ass-hinting", ass_hinting, 0, 0, 7), + OPT_CHOICE("ass-hinting", ass_hinting, 0, + ({"none", 0}, {"light", 1}, {"normal", 2}, {"native", 3})), OPT_CHOICE("ass-style-override", ass_style_override, 0, ({"no", 0}, {"yes", 1})), OPT_FLAG("osd-bar", osd_bar_visible, 0), |