diff options
author | wm4 <wm4@nowhere> | 2013-01-04 16:10:17 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-01-05 14:11:56 +0100 |
commit | ca9c81b0d30d630a950a0d830fe8d98ab0131eef (patch) | |
tree | 3b64d4f54f0f1c2624662bc40504c3ca5b002959 /core | |
parent | e65778ca6caa3b539877e43471481aa8c2387ebe (diff) | |
download | mpv-ca9c81b0d30d630a950a0d830fe8d98ab0131eef.tar.bz2 mpv-ca9c81b0d30d630a950a0d830fe8d98ab0131eef.tar.xz |
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.
Diffstat (limited to 'core')
-rw-r--r-- | core/cfg-mplayer.h | 3 | ||||
-rw-r--r-- | core/options.h | 1 |
2 files changed, 4 insertions, 0 deletions
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; |