>From fd6537fcdef850063e0be55889bd034465596e96 Mon Sep 17 00:00:00 2001 From: greg Date: Wed, 18 Feb 2009 04:44:57 +0100 Subject: [PATCH 11/12] Scale shadow displacement and blur size like border size. --- libass/ass_render.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libass/ass_render.c b/libass/ass_render.c index 75b3c46..3679249 100644 --- a/libass/ass_render.c +++ b/libass/ass_render.c @@ -520,8 +520,8 @@ static ass_image_t* render_text(text_info_t* text_info, int dst_x, int dst_y) 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); @@ -1496,7 +1496,7 @@ static void get_bitmap_glyph(glyph_info_t* 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; -- 1.5.4.3