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

eugeni subversion at mplayerhq.hu
Tue Feb 20 18:20:21 CET 2007


Author: eugeni
Date: Tue Feb 20 18:20:21 2007
New Revision: 22293

Modified:
   trunk/libass/ass_render.c

Log:
With \t(\b) text becomes bold at the middle of time interval, not at the end
of it like before. The same for \t(\i).


Modified: trunk/libass/ass_render.c
==============================================================================
--- trunk/libass/ass_render.c	(original)
+++ trunk/libass/ass_render.c	Tue Feb 20 18:20:21 2007
@@ -995,7 +995,7 @@
 	} else if (mystrcmp(&p, "b")) {
 		int b;
 		if (mystrtoi(&p, 10, &b)) {
-			if (pwr >= 1.)
+			if (pwr >= .5)
 				render_context.bold = b;
 		} else
 			render_context.bold = render_context.style->Bold;
@@ -1003,6 +1003,7 @@
 	} else if (mystrcmp(&p, "i")) {
 		int i;
 		if (mystrtoi(&p, 10, &i))
+			if (pwr >= .5)
 			render_context.italic = i;
 		else
 			render_context.italic = render_context.style->Italic;



More information about the MPlayer-cvslog mailing list