# HG changeset patch # User greg # Date 1236285404 0 # Node ID 907d3d80b50f15444ceaa325f562948a849314db # Parent 1cfc467bb77ccec95923cf5f739fc2b49bc8c180 Scale shadow displacement and blur size like border size. diff -r 1cfc467bb77c -r 907d3d80b50f libass/ass_render.c --- a/libass/ass_render.c Thu Mar 05 20:36:41 2009 +0000 +++ b/libass/ass_render.c Thu Mar 05 20:36:44 2009 +0000 @@ -422,8 +422,8 @@ 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 @@ 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;