Mercurial > mplayer.hg
changeset 28784:907d3d80b50f
Scale shadow displacement and blur size like border size.
author | greg |
---|---|
date | Thu, 05 Mar 2009 20:36:44 +0000 |
parents | 1cfc467bb77c |
children | 0366ab2c1cb9 |
files | libass/ass_render.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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;