From: Grigori Goronzy Date: Fri, 8 Apr 2011 22:24:48 +0000 (+0200) Subject: VSFilter compat: don't render shadow when glyph/border invisible X-Git-Tag: 0.9.12~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f9283004c4f03b316e1b1cb5fe4491acd98a2a6f;p=libass 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. --- 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; } /**