comparison 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
comparison
equal deleted inserted replaced
22400:4c93dd37fda9 22401:0fd3c34a3127
1722 1722
1723 if (error) { 1723 if (error) {
1724 continue; 1724 continue;
1725 } 1725 }
1726 1726
1727 text_info.glyphs[text_info.length].pos.x = d6_to_int(pen.x); 1727 text_info.glyphs[text_info.length].pos.x = pen.x >> 6;
1728 text_info.glyphs[text_info.length].pos.y = d6_to_int(pen.y); 1728 text_info.glyphs[text_info.length].pos.y = pen.y >> 6;
1729 1729
1730 pen.x += text_info.glyphs[text_info.length].advance.x; 1730 pen.x += text_info.glyphs[text_info.length].advance.x;
1731 pen.x += double_to_d6(render_context.hspacing); 1731 pen.x += double_to_d6(render_context.hspacing);
1732 pen.y += text_info.glyphs[text_info.length].advance.y; 1732 pen.y += text_info.glyphs[text_info.length].advance.y;
1733 1733