# HG changeset patch # User eugeni # Date 1172910000 0 # Node ID 0fd3c34a31272323084782a95f3266591372f560 # Parent 4c93dd37fda96a5d91901ea27b1b0a53f6b07c82 Fix incorrect spacing introduced in r22231: these two lines were supposed to perform truncation, not rounding. diff -r 4c93dd37fda9 -r 0fd3c34a3127 libass/ass_render.c --- a/libass/ass_render.c Sat Mar 03 07:58:36 2007 +0000 +++ b/libass/ass_render.c Sat Mar 03 08:20:00 2007 +0000 @@ -1724,8 +1724,8 @@ 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);