diff options
author | Grigori Goronzy <greg@blackbox> | 2011-04-09 00:24:48 +0200 |
---|---|---|
committer | Grigori Goronzy <greg@blackbox> | 2011-04-09 00:24:48 +0200 |
commit | f9283004c4f03b316e1b1cb5fe4491acd98a2a6f (patch) | |
tree | e343da84c274b1b979810f8efeb46b10b5562a7b /libass/ass_render.c | |
parent | 22f6651e191f83bed6ebd8e331f5d2d8aad9ab59 (diff) | |
download | libass-f9283004c4f03b316e1b1cb5fe4491acd98a2a6f.tar.bz2 libass-f9283004c4f03b316e1b1cb5fe4491acd98a2a6f.tar.xz |
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.
Diffstat (limited to 'libass/ass_render.c')
-rw-r--r-- | libass/ass_render.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libass/ass_render.c b/libass/ass_render.c index 8ca69117..2f3405e6 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; } /** |