More precise line spacing.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24577 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
eugeni 2007-09-18 19:51:22 +00:00
parent 658f1e215e
commit 666a245ff9
1 changed files with 1 additions and 1 deletions

View File

@ -1474,7 +1474,7 @@ static void wrap_lines_smart(int max_text_width)
int height = text_info.lines[cur_line - 1].desc + text_info.lines[cur_line].asc; int height = text_info.lines[cur_line - 1].desc + text_info.lines[cur_line].asc;
cur_line ++; cur_line ++;
pen_shift_x = - cur->pos.x; 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); 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; cur->pos.x += pen_shift_x;