changeset 22262:184e92166a6a

Add \t(\b) support. Contradicts the specification, but supported by all other renderers.
author eugeni
date Mon, 19 Feb 2007 19:01:45 +0000
parents 17977e60f958
children 1bf17db53cc3
files libass/ass_render.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libass/ass_render.c	Mon Feb 19 18:37:54 2007 +0000
+++ b/libass/ass_render.c	Mon Feb 19 19:01:45 2007 +0000
@@ -979,9 +979,10 @@
 			render_context.be = 0;
 	} else if (mystrcmp(&p, "b")) {
 		int b;
-		if (mystrtoi(&p, 10, &b))
-			render_context.bold = b;
-		else
+		if (mystrtoi(&p, 10, &b)) {
+			if (pwr >= 1.)
+				render_context.bold = b;
+		} else
 			render_context.bold = - render_context.style->Bold;
 		update_font();
 	} else if (mystrcmp(&p, "i")) {