# HG changeset patch # User eugeni # Date 1171576311 0 # Node ID c49aefdc37f65ca0a803479560ce79cee0c004eb # Parent cf960c7097e3af9a40619c7c2b157e3ee6076af0 Fix \t(\frz) handling. diff -r cf960c7097e3 -r c49aefdc37f6 libass/ass_render.c --- a/libass/ass_render.c Thu Feb 15 21:50:21 2007 +0000 +++ b/libass/ass_render.c Thu Feb 15 21:51:51 2007 +0000 @@ -773,12 +773,10 @@ mystrtod(&p, &val); mp_msg(MSGT_ASS, MSGL_V, "frx/fry unimplemented \n"); } else if (mystrcmp(&p, "frz") || mystrcmp(&p, "fr")) { - double angle; double val; mystrtod(&p, &val); - mp_msg(MSGT_ASS, MSGL_DBG2, "setting rotation to %.2f\n", val * pwr); - angle = M_PI * val / 180; - render_context.rotation = angle * pwr; + val *= M_PI / 180; + render_context.rotation = val * pwr + render_context.rotation * (1-pwr); } else if (mystrcmp(&p, "fn")) { char* start = p; char* family;