Mercurial > mplayer.hg
changeset 22260:ae6fe8a910dd
Fix \fscx/\fscy animation.
author | eugeni |
---|---|
date | Mon, 19 Feb 2007 18:31:05 +0000 |
parents | cb409839a110 |
children | 17977e60f958 |
files | libass/ass_render.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libass/ass_render.c Mon Feb 19 18:01:49 2007 +0000 +++ b/libass/ass_render.c Mon Feb 19 18:31:05 2007 +0000 @@ -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; }