changeset 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 4c93dd37fda9
children 963d93b2fe7c
files libass/ass_render.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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);