From 658f1e215ea083ee5becab616c5775984119f3d0 Mon Sep 17 00:00:00 2001 From: eugeni Date: Tue, 18 Sep 2007 18:41:38 +0000 Subject: [PATCH] Fix text height calculation. It depends on line spacing. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24576 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libass/ass_render.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libass/ass_render.c b/libass/ass_render.c index 6b8cb5ad0f..63309076cc 100644 --- a/libass/ass_render.c +++ b/libass/ass_render.c @@ -1343,6 +1343,7 @@ static void measure_text(void) max_desc = cur->desc; } } + text_info.height += (text_info.n_lines - 1) * double_to_d6(global_settings->line_spacing); } /**