[MPlayer-cvslog] r24577 - trunk/libass/ass_render.c

eugeni subversion at mplayerhq.hu
Tue Sep 18 21:51:22 CEST 2007


Author: eugeni
Date: Tue Sep 18 21:51:22 2007
New Revision: 24577

Log:
More precise line spacing.


Modified:
   trunk/libass/ass_render.c

Modified: trunk/libass/ass_render.c
==============================================================================
--- trunk/libass/ass_render.c	(original)
+++ trunk/libass/ass_render.c	Tue Sep 18 21:51:22 2007
@@ -1474,7 +1474,7 @@ static void wrap_lines_smart(int max_tex
 			int height = text_info.lines[cur_line - 1].desc + text_info.lines[cur_line].asc;
 			cur_line ++;
 			pen_shift_x = - cur->pos.x;
-			pen_shift_y += d6_to_int(height) + global_settings->line_spacing;
+			pen_shift_y += d6_to_int(height + double_to_d6(global_settings->line_spacing));
 			mp_msg(MSGT_ASS, MSGL_DBG2, "shifting from %d to %d by (%d, %d)\n", i, text_info.length - 1, pen_shift_x, pen_shift_y);
 		}
 		cur->pos.x += pen_shift_x;



More information about the MPlayer-cvslog mailing list