changeset 22275:e104fa52d218

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).
author eugeni
date Tue, 20 Feb 2007 17:20:21 +0000
parents 7cb8c95727ab
children 9f95f9dcf832
files libass/ass_render.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libass/ass_render.c	Tue Feb 20 17:19:06 2007 +0000
+++ b/libass/ass_render.c	Tue Feb 20 17:20:21 2007 +0000
@@ -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;