]> granicus.if.org Git - libass/commitdiff
fontselect: fix oblique/italic mixup
authorGrigori Goronzy <greg@chown.ath.cx>
Sat, 13 Jun 2015 14:25:41 +0000 (16:25 +0200)
committerGrigori Goronzy <greg@chown.ath.cx>
Fri, 10 Jul 2015 08:43:16 +0000 (10:43 +0200)
The constants were swapped. In some cases this lead to incorrect matching.

libass/ass_parse.c

index 9aebf3bcc7105000bc4835cdac472ed2bdb5bcf0..61ba69151cbf53f6e8dcaf7506fb14c4c83f8f18 100644 (file)
@@ -121,7 +121,7 @@ void update_font(ASS_Renderer *render_priv)
 
     val = render_priv->state.italic;
     if (val == 1)
-        val = 110;              // italic
+        val = 100;              // italic
     else if (val <= 0)
         val = 0;                // normal
     desc.italic = val;