From f9283004c4f03b316e1b1cb5fe4491acd98a2a6f Mon Sep 17 00:00:00 2001 From: Grigori Goronzy Date: Sat, 9 Apr 2011 00:24:48 +0200 Subject: VSFilter compat: don't render shadow when glyph/border invisible Yet another VSFilter idiosyncracy: when the glyph fill is invisible (alpha 0xFF) and there is no border, do not render any shadow. --- libass/ass_render.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libass/ass_render.c b/libass/ass_render.c index 8ca6911..2f3405e 100644 --- a/libass/ass_render.c +++ b/libass/ass_render.c @@ -1302,6 +1302,11 @@ get_bitmap_glyph(ASS_Renderer *render_priv, GlyphInfo *info) FT_Done_Glyph(outline); } } + + // VSFilter compatibility: invisible fill and no border? + // In this case no shadow is supposed to be rendered. + if (!info->outline_glyph && (info->c[0] >> 24) == 0xFF) + info->bm_s = 0; } /** -- cgit v1.2.3