Mercurial > mplayer.hg
changeset 22208:c49aefdc37f6
Fix \t(\frz) handling.
author | eugeni |
---|---|
date | Thu, 15 Feb 2007 21:51:51 +0000 |
parents | cf960c7097e3 |
children | 5add218bb6c3 |
files | libass/ass_render.c |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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;