From: Grigori Goronzy Date: Mon, 4 Jul 2011 08:00:33 +0000 (+0200) Subject: Fix: VSFilter compat: don't render shadow when glyph/border invisible X-Git-Tag: 0.10.0~65 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d64db394cb7b685f4f4d2775a35b358cf7bd0b9e;p=libass Fix: VSFilter compat: don't render shadow when glyph/border invisible Use the alpha channel, not the red channel. Fixes commit f92830. Original patch by lachs0r. --- diff --git a/libass/ass_render.c b/libass/ass_render.c index 5c5ced3..aaa5778 100644 --- a/libass/ass_render.c +++ b/libass/ass_render.c @@ -1288,7 +1288,7 @@ get_bitmap_glyph(ASS_Renderer *render_priv, GlyphInfo *info) // VSFilter compatibility: invisible fill and no border? // In this case no shadow is supposed to be rendered. - if (!info->border && (info->c[0] >> 24) == 0xFF) + if (!info->border && (info->c[0] & 0xFF) == 0xFF) info->bm_s = 0; }