[MPlayer-cvslog] r22278 - trunk/libass/ass_render.c
eugeni
subversion at mplayerhq.hu
Mon Feb 19 19:31:05 CET 2007
Author: eugeni
Date: Mon Feb 19 19:31:05 2007
New Revision: 22278
Modified:
trunk/libass/ass_render.c
Log:
Fix \fscx/\fscy animation.
Modified: trunk/libass/ass_render.c
==============================================================================
--- trunk/libass/ass_render.c (original)
+++ trunk/libass/ass_render.c Mon Feb 19 19:31:05 2007
@@ -702,13 +702,13 @@
if (tp == 'x') {
if (mystrtod(&p, &val)) {
val /= 100;
- render_context.scale_x = (val - 1.) * pwr + 1.;
+ render_context.scale_x = render_context.scale_x * ( 1 - pwr) + val * pwr;
} else
render_context.scale_x = render_context.style->ScaleX;
} else if (tp == 'y') {
if (mystrtod(&p, &val)) {
val /= 100;
- render_context.scale_y = (val - 1.) * pwr + 1.;
+ render_context.scale_y = render_context.scale_y * ( 1 - pwr) + val * pwr;
} else
render_context.scale_y = render_context.style->ScaleY;
}
More information about the MPlayer-cvslog
mailing list