mirror of https://github.com/mpv-player/mpv
Fix \fscx/\fscy animation.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22278 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
39c818a551
commit
3e1dde83ba
|
@ -702,13 +702,13 @@ static char* parse_tag(char* p, double pwr) {
|
||||||
if (tp == 'x') {
|
if (tp == 'x') {
|
||||||
if (mystrtod(&p, &val)) {
|
if (mystrtod(&p, &val)) {
|
||||||
val /= 100;
|
val /= 100;
|
||||||
render_context.scale_x = (val - 1.) * pwr + 1.;
|
render_context.scale_x = render_context.scale_x * ( 1 - pwr) + val * pwr;
|
||||||
} else
|
} else
|
||||||
render_context.scale_x = render_context.style->ScaleX;
|
render_context.scale_x = render_context.style->ScaleX;
|
||||||
} else if (tp == 'y') {
|
} else if (tp == 'y') {
|
||||||
if (mystrtod(&p, &val)) {
|
if (mystrtod(&p, &val)) {
|
||||||
val /= 100;
|
val /= 100;
|
||||||
render_context.scale_y = (val - 1.) * pwr + 1.;
|
render_context.scale_y = render_context.scale_y * ( 1 - pwr) + val * pwr;
|
||||||
} else
|
} else
|
||||||
render_context.scale_y = render_context.style->ScaleY;
|
render_context.scale_y = render_context.style->ScaleY;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue