]> granicus.if.org Git - libass/commitdiff
Change what fields are overridden with style override
authorwm4 <wm4@nowhere>
Thu, 26 Feb 2015 19:49:15 +0000 (20:49 +0100)
committerwm4 <wm4@nowhere>
Thu, 26 Feb 2015 19:49:15 +0000 (20:49 +0100)
"Bold" should obviously be taken from the script's style, like it's done
with StrikeOut and Underline.

treat_fontname_as_pattern is specific to the font, and thus should be
taken from the same style as the font (the override style).

libass/ass_render.c

index 2a366478075594253f0035396fb136e65cb001e1..3e547104c1e798824b42f034c546f36b4393337c 100644 (file)
@@ -778,6 +778,7 @@ static ASS_Style *handle_selective_style_overrides(ASS_Renderer *render_priv,
     // script's style that are deemed necessary.
     *new = render_priv->user_override_style;
 
+    new->Bold = rstyle->Bold;
     new->StrikeOut = rstyle->StrikeOut;
     new->Underline = rstyle->Underline;
     new->Angle = rstyle->Angle;
@@ -787,7 +788,6 @@ static ASS_Style *handle_selective_style_overrides(ASS_Renderer *render_priv,
     new->MarginV = rstyle->MarginV;
     new->Alignment = rstyle->Alignment;
     new->Encoding = rstyle->Encoding;
-    new->treat_fontname_as_pattern = rstyle->treat_fontname_as_pattern;
 
     // The user style is supposed to be independent of the script resolution.
     // Treat the user style's values as if they were specified for a script with