# HG changeset patch # User eugeni # Date 1190140492 0 # Node ID ffc2c7164bc068ee2fccf34da1c7915e359ae4ad # Parent d6bba2781d016d7928e9604e673ed6f8ac124260 Enable ass_line_spacing option. Patch by Thomas Reitmayr (treitmayr devbase at). diff -r d6bba2781d01 -r ffc2c7164bc0 libass/ass.h --- a/libass/ass.h Tue Sep 18 16:28:39 2007 +0000 +++ b/libass/ass.h Tue Sep 18 18:34:52 2007 +0000 @@ -85,6 +85,7 @@ void ass_set_aspect_ratio(ass_renderer_t* priv, double ar); void ass_set_font_scale(ass_renderer_t* priv, double font_scale); void ass_set_hinting(ass_renderer_t* priv, ass_hinting_t ht); +void ass_set_line_spacing(ass_renderer_t* priv, double line_spacing); /** * \brief set font lookup defaults diff -r d6bba2781d01 -r ffc2c7164bc0 libass/ass_mp.c --- a/libass/ass_mp.c Tue Sep 18 16:28:39 2007 +0000 +++ b/libass/ass_mp.c Tue Sep 18 18:34:52 2007 +0000 @@ -228,6 +228,7 @@ else hinting = ass_hinting & 3; ass_set_hinting(priv, hinting); + ass_set_line_spacing(priv, ass_line_spacing); } void ass_configure_fonts(ass_renderer_t* priv) { diff -r d6bba2781d01 -r ffc2c7164bc0 libass/ass_render.c --- a/libass/ass_render.c Tue Sep 18 16:28:39 2007 +0000 +++ b/libass/ass_render.c Tue Sep 18 18:34:52 2007 +0000 @@ -2063,6 +2063,11 @@ } } +void ass_set_line_spacing(ass_renderer_t* priv, double line_spacing) +{ + priv->settings.line_spacing = line_spacing; +} + int ass_set_fonts(ass_renderer_t* priv, const char* default_font, const char* default_family) { if (priv->settings.default_font)