# HG changeset patch # User eugeni # Date 1190145082 0 # Node ID 32865ce92732aa99af8e6c61bbf48db4f464728c # Parent 965062bfe0846f9ddf57314e5ae1c09564feef8a More precise line spacing. diff -r 965062bfe084 -r 32865ce92732 libass/ass_render.c --- a/libass/ass_render.c Tue Sep 18 18:41:38 2007 +0000 +++ b/libass/ass_render.c Tue Sep 18 19:51:22 2007 +0000 @@ -1474,7 +1474,7 @@ 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;