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

eugeni subversion at mplayerhq.hu
Tue Sep 19 19:40:31 CEST 2006


Author: eugeni
Date: Tue Sep 19 19:40:31 2006
New Revision: 19910

Modified:
   trunk/libass/ass_render.c

Log:
Calculate text bounding box in such way that it does not depend on the height
of individual glyphs.


Modified: trunk/libass/ass_render.c
==============================================================================
--- trunk/libass/ass_render.c	(original)
+++ trunk/libass/ass_render.c	Tue Sep 19 19:40:31 2006
@@ -1686,6 +1686,8 @@
 	
 	// determing text bounding box
 	compute_string_bbox(&text_info, &bbox);
+	bbox.yMin = - (text_info.lines[0].asc >> 6);
+	bbox.yMax = (text_info.height - text_info.lines[0].asc) >> 6;
 	
 	// determine device coordinates for text
 	



More information about the MPlayer-cvslog mailing list