Mercurial > mplayer.hg
changeset 19566:5682e49dffe8
Fix font scaling taking margins into account.
author | eugeni |
---|---|
date | Mon, 28 Aug 2006 16:43:17 +0000 |
parents | 5275c455ddfb |
children | 1a03b2c8ac28 |
files | libass/ass_render.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libass/ass_render.c Mon Aug 28 16:26:11 2006 +0000 +++ b/libass/ass_render.c Mon Aug 28 16:43:17 2006 +0000 @@ -1863,7 +1863,7 @@ 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;