changeset 28779:5d2340c92b12

Ignore PlayResX/Y aspect ratio for font aspect ratio.
author greg
date Thu, 05 Mar 2009 20:05:56 +0000
parents 21346979722b
children 0f67e29affb9
files libass/ass_render.c
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libass/ass_render.c	Thu Mar 05 19:46:08 2009 +0000
+++ b/libass/ass_render.c	Thu Mar 05 20:05:56 2009 +0000
@@ -2228,10 +2228,7 @@
 	                           frame_context.orig_height / frame_context.track->PlayResY;
 	frame_context.border_scale = ((double)frame_context.orig_height) / frame_context.track->PlayResY;
 
-	if (frame_context.orig_width * track->PlayResY == frame_context.orig_height * track->PlayResX)
-		frame_context.font_scale_x = 1.;
-	else
-		frame_context.font_scale_x = ((double)(frame_context.orig_width * track->PlayResY)) / (frame_context.orig_height * track->PlayResX);
+	frame_context.font_scale_x = 1.;
 
 	priv->prev_images_root = priv->images_root;
 	priv->images_root = 0;