[MPlayer-cvslog] r19572 - trunk/libass/ass_render.c

eugeni subversion at mplayerhq.hu
Mon Aug 28 18:43:17 CEST 2006


Author: eugeni
Date: Mon Aug 28 18:43:17 2006
New Revision: 19572

Modified:
   trunk/libass/ass_render.c

Log:
Fix font scaling taking margins into account.


Modified: trunk/libass/ass_render.c
==============================================================================
--- trunk/libass/ass_render.c	(original)
+++ trunk/libass/ass_render.c	Mon Aug 28 18:43:17 2006
@@ -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;
 



More information about the MPlayer-cvslog mailing list