Mercurial > mplayer.hg
diff libass/ass_render.c @ 22401:0fd3c34a3127
Fix incorrect spacing introduced in r22231:
these two lines were supposed to perform truncation, not rounding.
author | eugeni |
---|---|
date | Sat, 03 Mar 2007 08:20:00 +0000 |
parents | b2e4557a3160 |
children | 62127d710369 |
line wrap: on
line diff
--- 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);