diff options
author | eugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-08-28 16:43:17 +0000 |
---|---|---|
committer | eugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-08-28 16:43:17 +0000 |
commit | 85063db77659f3aee5a752db9962e568ff8493cc (patch) | |
tree | d5a713e2d58b4f0d1c84b03b2cac117a6352898d /libass | |
parent | a0ad76ce92653c7d855a8a547c7deee0af4803fa (diff) | |
download | mpv-85063db77659f3aee5a752db9962e568ff8493cc.tar.bz2 mpv-85063db77659f3aee5a752db9962e568ff8493cc.tar.xz |
Fix font scaling taking margins into account.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19572 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libass')
-rw-r--r-- | libass/ass_render.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libass/ass_render.c b/libass/ass_render.c index fc40b51439..b1d6b2e3fc 100644 --- a/libass/ass_render.c +++ b/libass/ass_render.c @@ -1863,7 +1863,7 @@ int ass_start_frame(ass_instance_t *priv, ass_track_t* track, long long now) if (frame_context.width * track->PlayResY == frame_context.height * track->PlayResX) frame_context.font_scale_x = 1.; else - frame_context.font_scale_x = ((double)(frame_context.width * track->PlayResY)) / (frame_context.height * track->PlayResX); + frame_context.font_scale_x = ((double)(frame_context.orig_width * track->PlayResY)) / (frame_context.orig_height * track->PlayResX); priv->n_images = 0; |