3 Mar
2007
3 Mar
'07
6:15 a.m.
On Fri, 2007-02-16 at 18:49 +0100, eugeni wrote:
- text_info.glyphs[text_info.length].pos.x = pen.x >> 6; - text_info.glyphs[text_info.length].pos.y = pen.y >> 6; + 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);
+static inline int d6_to_int(int x) { + return (x + 32) >> 6; +}
This change caused bad spacing. Changing the earlier lines shift.x = pen.x & 63; shift.y = pen.y & 63; to shift.x = (pen.x + 32) & 63; shift.y = (pen.y + 32) & 63; seems to fix it.