summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleg Oshmyan <chortos@inbox.lv>2012-12-16 18:08:23 +0200
committerOleg Oshmyan <chortos@inbox.lv>2012-12-28 18:54:27 +0200
commit62275969552280956d6555f89b9a46427868d6ac (patch)
treed992d60b1169d7e04ca5079a276e1e53c53245d7
parent91b0e50da385723853969b2d3814b70d21a36077 (diff)
downloadlibass-62275969552280956d6555f89b9a46427868d6ac.tar.bz2
libass-62275969552280956d6555f89b9a46427868d6ac.tar.xz
Apply blur to both glyph and border when using opaque box borders
-rw-r--r--libass/ass_bitmap.c6
1 files changed, 3 insertions, 3 deletions
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,