summaryrefslogtreecommitdiffstats
path: root/libass/ass_render.c
diff options
context:
space:
mode:
authorGrigori Goronzy <greg@blackbox>2011-07-04 10:00:33 +0200
committerGrigori Goronzy <greg@blackbox>2011-07-04 10:00:33 +0200
commitd64db394cb7b685f4f4d2775a35b358cf7bd0b9e (patch)
treeaf52e6323842274719458755a258cca921d554aa /libass/ass_render.c
parent3e6da15766c85322a6ea3331b5119109ee44680f (diff)
downloadlibass-d64db394cb7b685f4f4d2775a35b358cf7bd0b9e.tar.bz2
libass-d64db394cb7b685f4f4d2775a35b358cf7bd0b9e.tar.xz
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.
Diffstat (limited to 'libass/ass_render.c')
-rw-r--r--libass/ass_render.c2
1 files changed, 1 insertions, 1 deletions
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;
}