changeset 24554:ffc2c7164bc0

Enable ass_line_spacing option. Patch by Thomas Reitmayr (treitmayr devbase at).
author eugeni
date Tue, 18 Sep 2007 18:34:52 +0000
parents d6bba2781d01
children 807c77fbf4c5
files libass/ass.h libass/ass_mp.c libass/ass_render.c
diffstat 3 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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
--- 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) {
--- 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)