[MPlayer-cvslog] r24574 - in trunk/libass: ass.h ass_mp.c ass_render.c
eugeni
subversion at mplayerhq.hu
Tue Sep 18 20:34:52 CEST 2007
Author: eugeni
Date: Tue Sep 18 20:34:52 2007
New Revision: 24574
Log:
Enable ass_line_spacing option.
Patch by Thomas Reitmayr (treitmayr devbase at).
Modified:
trunk/libass/ass.h
trunk/libass/ass_mp.c
trunk/libass/ass_render.c
Modified: trunk/libass/ass.h
==============================================================================
--- trunk/libass/ass.h (original)
+++ trunk/libass/ass.h Tue Sep 18 20:34:52 2007
@@ -85,6 +85,7 @@ void ass_set_use_margins(ass_renderer_t*
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
Modified: trunk/libass/ass_mp.c
==============================================================================
--- trunk/libass/ass_mp.c (original)
+++ trunk/libass/ass_mp.c Tue Sep 18 20:34:52 2007
@@ -228,6 +228,7 @@ void ass_configure(ass_renderer_t* priv,
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) {
Modified: trunk/libass/ass_render.c
==============================================================================
--- trunk/libass/ass_render.c (original)
+++ trunk/libass/ass_render.c Tue Sep 18 20:34:52 2007
@@ -2063,6 +2063,11 @@ void ass_set_hinting(ass_renderer_t* pri
}
}
+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)
More information about the MPlayer-cvslog
mailing list