mirror of
https://github.com/mpv-player/mpv
synced 2025-04-28 14:20:05 +00:00
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
This commit is contained in:
parent
3e3ad56106
commit
a267f03bfa
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user