]> granicus.if.org Git - libass/commitdiff
Scale shadow displacement and blur size like border size.
authorgreg <greg@b3059339-0415-0410-9bf9-f77b7e298cf2>
Thu, 5 Mar 2009 20:36:44 +0000 (20:36 +0000)
committergreg <greg@b3059339-0415-0410-9bf9-f77b7e298cf2>
Thu, 5 Mar 2009 20:36:44 +0000 (20:36 +0000)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28819 b3059339-0415-0410-9bf9-f77b7e298cf2

libass/ass_render.c

index e8d18ed3d3e8d781c9eeb0dad9483d2b2d3254fd..399ca533cd1c6251237f6c5c535fbe321d44bc54 100644 (file)
@@ -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;