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

eugeni subversion at mplayerhq.hu
Mon Feb 19 19:37:54 CET 2007


Author: eugeni
Date: Mon Feb 19 19:37:54 2007
New Revision: 22279

Modified:
   trunk/libass/ass_render.c

Log:
Fix bounding box calculation with \fscx/\fscy.


Modified: trunk/libass/ass_render.c
==============================================================================
--- trunk/libass/ass_render.c	(original)
+++ trunk/libass/ass_render.c	Mon Feb 19 19:37:54 2007
@@ -1293,9 +1293,9 @@
 		if (i < text_info.length) {
 			glyph_info_t* cur = text_info.glyphs + i;
 			if (cur->asc > max_asc)
-				max_asc = cur->asc * render_context.scale_y;
+				max_asc = cur->asc;
 			if (cur->desc > max_desc)
-				max_desc = cur->desc * render_context.scale_y;
+				max_desc = cur->desc;
 		}
 	}
 }
@@ -1739,6 +1739,8 @@
 		ass_font_get_asc_desc(render_context.font, code,
 				      &text_info.glyphs[text_info.length].asc,
 				      &text_info.glyphs[text_info.length].desc);
+		text_info.glyphs[text_info.length].asc *= render_context.scale_y;
+		text_info.glyphs[text_info.length].desc *= render_context.scale_y;
 
 		text_info.length++;
 



More information about the MPlayer-cvslog mailing list