]> granicus.if.org Git - libass/commitdiff
Fix: VSFilter compat: don't render shadow when glyph/border invisible
authorGrigori Goronzy <greg@blackbox>
Mon, 4 Jul 2011 08:00:33 +0000 (10:00 +0200)
committerGrigori Goronzy <greg@blackbox>
Mon, 4 Jul 2011 08:00:33 +0000 (10:00 +0200)
Use the alpha channel, not the red channel. Fixes commit f92830.

Original patch by lachs0r.

libass/ass_render.c

index 5c5ced3a54f7fe730d3d3d54df060e5ffda77ce1..aaa5778ebe15368aee77deb9036adaa46ec0d431 100644 (file)
@@ -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;
 }