Enable ass_line_spacing option.
authoreugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>
Tue, 18 Sep 2007 18:34:52 +0000 (18:34 +0000)
committereugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>
Tue, 18 Sep 2007 18:34:52 +0000 (18:34 +0000)
Patch by Thomas Reitmayr (treitmayr devbase at).

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@24574 b3059339-0415-0410-9bf9-f77b7e298cf2

libass/ass.h
libass/ass_mp.c
libass/ass_render.c

index e20e6bb..f90b6b1 100644 (file)
@@ -85,6 +85,7 @@ void ass_set_use_margins(ass_renderer_t* priv, int use);
 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
index 0913cd7..e38fee4 100644 (file)
@@ -228,6 +228,7 @@ void ass_configure(ass_renderer_t* priv, int w, int h, int unscaled) {
        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) {
index 769a35f..bafed9d 100644 (file)
@@ -2063,6 +2063,11 @@ void ass_set_hinting(ass_renderer_t* priv, ass_hinting_t ht)
        }
 }
 
+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)