From 4567ad1e3c373ee185d3ba7f044222442ea55534 Mon Sep 17 00:00:00 2001 From: "Dr.Smile" Date: Fri, 6 Mar 2015 18:21:43 +0300 Subject: [PATCH] Fix BorderStyle=3 with zero Outline and Shadow --- libass/ass_render.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libass/ass_render.c b/libass/ass_render.c index db85586..6b5ff85 100644 --- a/libass/ass_render.c +++ b/libass/ass_render.c @@ -1822,8 +1822,12 @@ static int is_new_bm_run(GlyphInfo *info, GlyphInfo *last) static void make_shadow_bitmap(CombinedBitmapInfo *info, ASS_Renderer *render_priv) { if (!(info->filter.flags & FILTER_NONZERO_SHADOW)) { - if (info->bm_o && !(info->filter.flags & FILTER_BORDER_STYLE_3)) + if (info->bm_o && !(info->filter.flags & FILTER_BORDER_STYLE_3)) { fix_outline(info->bm, info->bm_o); + } else if (info->bm_o && !(info->filter.flags & FILTER_NONZERO_BORDER)) { + ass_free_bitmap(info->bm_o); + info->bm_o = 0; + } return; } -- 2.40.0