changeset 24556:965062bfe084

Fix text height calculation. It depends on line spacing.
author eugeni
date Tue, 18 Sep 2007 18:41:38 +0000
parents 807c77fbf4c5
children 32865ce92732
files libass/ass_render.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libass/ass_render.c	Tue Sep 18 18:36:54 2007 +0000
+++ b/libass/ass_render.c	Tue Sep 18 18:41:38 2007 +0000
@@ -1343,6 +1343,7 @@
 				max_desc = cur->desc;
 		}
 	}
+	text_info.height += (text_info.n_lines - 1) * double_to_d6(global_settings->line_spacing);
 }
 
 /**