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

greg subversion at mplayerhq.hu
Thu Mar 5 21:36:45 CET 2009


Author: greg
Date: Thu Mar  5 21:36:44 2009
New Revision: 28819

Log:
Scale shadow displacement and blur size like border size.

Modified:
   trunk/libass/ass_render.c

Modified: trunk/libass/ass_render.c
==============================================================================
--- trunk/libass/ass_render.c	Thu Mar  5 21:36:41 2009	(r28818)
+++ trunk/libass/ass_render.c	Thu Mar  5 21:36:44 2009	(r28819)
@@ -422,8 +422,8 @@ static ass_image_t* render_text(text_inf
 		if ((info->symbol == 0) || (info->symbol == '\n') || !info->bm_s || (info->shadow == 0))
 			continue;
 
-		pen_x = dst_x + info->pos.x + ROUND(info->shadow);
-		pen_y = dst_y + info->pos.y + ROUND(info->shadow);
+		pen_x = dst_x + info->pos.x + ROUND(info->shadow * frame_context.border_scale);
+		pen_y = dst_y + info->pos.y + ROUND(info->shadow * frame_context.border_scale);
 		bm = info->bm_s;
 
 		tail = render_glyph(bm, pen_x, pen_y, info->c[3], 0, 1000000, tail);
@@ -1397,7 +1397,7 @@ static void get_bitmap_glyph(glyph_info_
 					ass_renderer->synth_priv_blur,
 					info->glyph, info->outline_glyph,
 					&info->bm, &info->bm_o,
-					&info->bm_s, info->be, info->blur);
+					&info->bm_s, info->be, info->blur * frame_context.border_scale);
 			if (error)
 				info->symbol = 0;
 



More information about the MPlayer-cvslog mailing list