From: Grigori Goronzy Date: Sat, 27 Jun 2009 12:26:15 +0000 (+0200) Subject: Make \fax and \fay animatable. X-Git-Tag: 0.9.7~89 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c58cd622ea2d2ab54fd56533c57d9995802f7bfd;p=libass Make \fax and \fay animatable. --- diff --git a/libass/ass_render.c b/libass/ass_render.c index 9e1c008..afea67d 100644 --- a/libass/ass_render.c +++ b/libass/ass_render.c @@ -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")) {