From 1e4f08c50cc5e3abb61c95903a270c8e281d2e5b Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 25 Sep 2013 21:40:35 +0200 Subject: 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. --- mpvcore/options.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mpvcore') 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), -- cgit v1.2.3