summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrigori Goronzy <greg@blackbox>2011-04-09 00:24:48 +0200
committerGrigori Goronzy <greg@blackbox>2011-04-09 00:24:48 +0200
commitf9283004c4f03b316e1b1cb5fe4491acd98a2a6f (patch)
treee343da84c274b1b979810f8efeb46b10b5562a7b
parent22f6651e191f83bed6ebd8e331f5d2d8aad9ab59 (diff)
downloadlibass-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.
-rw-r--r--libass/ass_render.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libass/ass_render.c b/libass/ass_render.c
index 8ca6911..2f3405e 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;
}
/**