From d64db394cb7b685f4f4d2775a35b358cf7bd0b9e Mon Sep 17 00:00:00 2001 From: Grigori Goronzy Date: Mon, 4 Jul 2011 10:00:33 +0200 Subject: 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. --- libass/ass_render.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3