From cb9cde3f8c627d26f3104610b3f7a0506344da17 Mon Sep 17 00:00:00 2001 From: eugeni Date: Sat, 3 Mar 2007 08:20:00 +0000 Subject: Fix incorrect spacing introduced in r22231: these two lines were supposed to perform truncation, not rounding. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22419 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libass/ass_render.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libass') diff --git a/libass/ass_render.c b/libass/ass_render.c index 76fa2b8c10..f89bf4d564 100644 --- a/libass/ass_render.c +++ b/libass/ass_render.c @@ -1724,8 +1724,8 @@ static int ass_render_event(ass_event_t* event, event_images_t* event_images) continue; } - text_info.glyphs[text_info.length].pos.x = d6_to_int(pen.x); - text_info.glyphs[text_info.length].pos.y = d6_to_int(pen.y); + text_info.glyphs[text_info.length].pos.x = pen.x >> 6; + text_info.glyphs[text_info.length].pos.y = pen.y >> 6; pen.x += text_info.glyphs[text_info.length].advance.x; pen.x += double_to_d6(render_context.hspacing); -- cgit v1.2.3