diff options
Diffstat (limited to 'sub')
-rw-r--r-- | sub/ass_mp.c | 1 | ||||
-rw-r--r-- | sub/osd.c | 1 | ||||
-rw-r--r-- | sub/osd.h | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/sub/ass_mp.c b/sub/ass_mp.c index 93a797e036..2f9b39740f 100644 --- a/sub/ass_mp.c +++ b/sub/ass_mp.c @@ -77,6 +77,7 @@ void mp_ass_set_style(ASS_Style *style, double res_y, style->Alignment = 1 + (opts->align_x + 1) + (opts->align_y + 2) % 3 * 4; style->Blur = opts->blur; style->Bold = opts->bold; + style->Italic = opts->italic; } void mp_ass_configure_fonts(ASS_Renderer *priv, struct osd_style_opts *opts, @@ -61,6 +61,7 @@ static const m_option_t style_opts[] = { ({"top", -1}, {"center", 0}, {"bottom", +1})), OPT_FLOATRANGE("blur", blur, 0, 0, 20), OPT_FLAG("bold", bold, 0), + OPT_FLAG("italic", italic, 0), {0} }; @@ -123,6 +123,7 @@ struct osd_style_opts { int align_y; float blur; int bold; + int italic; }; extern const struct m_sub_options osd_style_conf; |