From: Oleg Oshmyan Date: Sun, 16 Dec 2012 16:08:23 +0000 (+0200) Subject: Apply blur to both glyph and border when using opaque box borders X-Git-Tag: 0.10.2~39 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=62275969552280956d6555f89b9a46427868d6ac;p=libass Apply blur to both glyph and border when using opaque box borders --- diff --git a/libass/ass_bitmap.c b/libass/ass_bitmap.c index 1f834c4..e5738e2 100644 --- a/libass/ass_bitmap.c +++ b/libass/ass_bitmap.c @@ -485,7 +485,7 @@ int outline_to_bitmap3(ASS_Library *library, ASS_SynthPriv *priv_blur, while (be--) { if (*bm_o) be_blur(*bm_o); - else + if (!*bm_o || border_style == 3) be_blur(*bm_g); } @@ -493,7 +493,7 @@ int outline_to_bitmap3(ASS_Library *library, ASS_SynthPriv *priv_blur, if (blur_radius > 0.0) { if (*bm_o) resize_tmp(priv_blur, (*bm_o)->w, (*bm_o)->h); - else + if (!*bm_o || border_style == 3) resize_tmp(priv_blur, (*bm_g)->w, (*bm_g)->h); generate_tables(priv_blur, blur_radius); if (*bm_o) @@ -501,7 +501,7 @@ int outline_to_bitmap3(ASS_Library *library, ASS_SynthPriv *priv_blur, (*bm_o)->w, (*bm_o)->h, (*bm_o)->stride, (int *) priv_blur->gt2, priv_blur->g_r, priv_blur->g_w); - else + if (!*bm_o || border_style == 3) ass_gauss_blur((*bm_g)->buffer, priv_blur->tmp, (*bm_g)->w, (*bm_g)->h, (*bm_g)->stride, (int *) priv_blur->gt2, priv_blur->g_r,