[MPlayer-cvslog] r22419 - trunk/libass/ass_render.c

eugeni subversion at mplayerhq.hu
Sat Mar 3 09:20:00 CET 2007


Author: eugeni
Date: Sat Mar  3 09:20:00 2007
New Revision: 22419

Modified:
   trunk/libass/ass_render.c

Log:
Fix incorrect spacing introduced in r22231:
these two lines were supposed to perform truncation, not rounding.


Modified: trunk/libass/ass_render.c
==============================================================================
--- trunk/libass/ass_render.c	(original)
+++ trunk/libass/ass_render.c	Sat Mar  3 09:20:00 2007
@@ -1724,8 +1724,8 @@ static int ass_render_event(ass_event_t*
 			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);



More information about the MPlayer-cvslog mailing list