summaryrefslogtreecommitdiffstats
path: root/libass/ass_render.c
diff options
context:
space:
mode:
authorgreg <greg@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-03-05 20:36:44 +0000
committergreg <greg@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-03-05 20:36:44 +0000
commita2b82120c0ad97811a8db3212a3a6589b98bd04f (patch)
treee3f8d4b25cf7e2e56ffccbc91fb84944704c3954 /libass/ass_render.c
parentc23a1cdfb356bbf39a95ca8ee7bf6fbc8938d061 (diff)
downloadmpv-a2b82120c0ad97811a8db3212a3a6589b98bd04f.tar.bz2
mpv-a2b82120c0ad97811a8db3212a3a6589b98bd04f.tar.xz
Scale shadow displacement and blur size like border size.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28819 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libass/ass_render.c')
-rw-r--r--libass/ass_render.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libass/ass_render.c b/libass/ass_render.c
index e8d18ed3d3..399ca533cd 100644
--- a/libass/ass_render.c
+++ b/libass/ass_render.c
@@ -422,8 +422,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);
@@ -1397,7 +1397,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;