[MPlayer-cvslog] r22226 - trunk/libass/ass_render.c
eugeni
subversion at mplayerhq.hu
Thu Feb 15 22:51:51 CET 2007
Author: eugeni
Date: Thu Feb 15 22:51:51 2007
New Revision: 22226
Modified:
trunk/libass/ass_render.c
Log:
Fix \t(\frz) handling.
Modified: trunk/libass/ass_render.c
==============================================================================
--- trunk/libass/ass_render.c (original)
+++ trunk/libass/ass_render.c Thu Feb 15 22:51:51 2007
@@ -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;
More information about the MPlayer-cvslog
mailing list