[MPlayer-cvslog] r19628 - trunk/libass/ass_render.c
eugeni
subversion at mplayerhq.hu
Fri Sep 1 22:36:38 CEST 2006
Author: eugeni
Date: Fri Sep 1 22:36:38 2006
New Revision: 19628
Modified:
trunk/libass/ass_render.c
Log:
Make \fr* parameter a floating point value.
Modified: trunk/libass/ass_render.c
==============================================================================
--- trunk/libass/ass_render.c (original)
+++ trunk/libass/ass_render.c Fri Sep 1 22:36:38 2006
@@ -726,13 +726,13 @@
render_context.detect_collisions = 0;
render_context.evt_type = EVENT_POSITIONED;
} else if (mystrcmp(&p, "frx") || mystrcmp(&p, "fry")) {
- int val;
- mystrtoi(&p, 10, &val);
+ double val;
+ mystrtod(&p, &val);
mp_msg(MSGT_GLOBAL, MSGL_V, "frx/fry unimplemented \n");
} else if (mystrcmp(&p, "frz") || mystrcmp(&p, "fr")) {
double angle;
- int val;
- val = strtol(p, &p, 10);
+ double val;
+ mystrtod(&p, &val);
mp_msg(MSGT_GLOBAL, MSGL_DBG2, "setting rotation to %.2f\n", val * pwr);
angle = M_PI * val / 180;
render_context.rotation = angle * pwr;
More information about the MPlayer-cvslog
mailing list