From: eugeni Date: Tue, 20 Feb 2007 17:20:21 +0000 (+0000) Subject: With \t(\b) text becomes bold at the middle of time interval, not at the end X-Git-Tag: 0.9.7~330 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=79a006d750edbba0dc13eaa76bc92e4c8dc5008f;p=libass 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). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22293 b3059339-0415-0410-9bf9-f77b7e298cf2 --- diff --git a/libass/ass_render.c b/libass/ass_render.c index f3eb298..5ca11c4 100644 --- a/libass/ass_render.c +++ b/libass/ass_render.c @@ -995,7 +995,7 @@ static char* parse_tag(char* p, double pwr) { } 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 @@ static char* parse_tag(char* p, double pwr) { } 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;