From ca9c81b0d30d630a950a0d830fe8d98ab0131eef Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 4 Jan 2013 16:10:17 +0100 Subject: sub: add --sub-text-* options to unstyled text subtitles font Before this commit, the --osd-* options (like --osd-font-size etc.) configured both the OSD and subtitle font. Make them separate, and add --sub-text-* options (like --sub-text-size etc.). Now --osd-* affects the OSD font only, and --sub-text-* unstyled text subtitles only. --- core/cfg-mplayer.h | 3 +++ core/options.h | 1 + 2 files changed, 4 insertions(+) (limited to 'core') diff --git a/core/cfg-mplayer.h b/core/cfg-mplayer.h index 65ebdbb595..9121359b02 100644 --- a/core/cfg-mplayer.h +++ b/core/cfg-mplayer.h @@ -523,6 +523,9 @@ const m_option_t common_opts[] = { OPT_GENERAL("osd", osd_style, M_OPT_PREFIXED, .type = &m_option_type_subconfig_struct, .priv = (void*)&osd_style_conf), + OPT_GENERAL("sub-text", sub_text_style, M_OPT_PREFIXED, + .type = &m_option_type_subconfig_struct, + .priv = (void*)&osd_style_conf), {NULL, NULL, 0, 0, 0, 0, NULL} }; diff --git a/core/options.h b/core/options.h index a45c6d468f..fbeb94c042 100644 --- a/core/options.h +++ b/core/options.h @@ -114,6 +114,7 @@ typedef struct MPOpts { char **sub_paths; int sub_auto; struct osd_style_opts *osd_style; + struct osd_style_opts *sub_text_style; float sub_scale; float sub_gauss; int sub_gray; -- cgit v1.2.3