]> granicus.if.org Git - libass/commitdiff
Make \fax and \fay animatable.
authorGrigori Goronzy <greg@blackbox>
Sat, 27 Jun 2009 12:26:15 +0000 (14:26 +0200)
committerGrigori Goronzy <greg@blackbox>
Sat, 27 Jun 2009 12:26:15 +0000 (14:26 +0200)
libass/ass_render.c

index 9e1c0082aa53f0dddb0ccb1168b5a4c364e149e9..afea67d4f52bba05ab5a8687061c35756c7e1ba4 100644 (file)
@@ -929,13 +929,15 @@ static char *parse_tag(ass_renderer_t *render_priv, char *p, double pwr)
     } else if (mystrcmp(&p, "fax")) {
         double val;
         if (mystrtod(&p, &val))
-            render_priv->state.fax = val;
+            render_priv->state.fax =
+                val * pwr + render_priv->state.fax * (1 - pwr);
         else
             render_priv->state.fax = 0.;
     } else if (mystrcmp(&p, "fay")) {
         double val;
         if (mystrtod(&p, &val))
-            render_priv->state.fay = val;
+            render_priv->state.fay =
+                val * pwr + render_priv->state.fay * (1 - pwr);
         else
             render_priv->state.fay = 0.;
     } else if (mystrcmp(&p, "iclip")) {