diff options
author | Grigori Goronzy <greg@blackbox> | 2009-08-12 06:42:48 +0200 |
---|---|---|
committer | Grigori Goronzy <greg@blackbox> | 2009-08-12 06:43:52 +0200 |
commit | 2612b33167ae02d5109c88ee45a94a2f30071228 (patch) | |
tree | 5ca2bd736e0d5d00ec2d43d7cf4635a9f213ece6 | |
parent | 8a12748e0e37adb7d8cda52c95a6c8ee36cf4172 (diff) | |
download | libass-2612b33167ae02d5109c88ee45a94a2f30071228.tar.bz2 libass-2612b33167ae02d5109c88ee45a94a2f30071228.tar.xz |
Do not draw opaque box if border size zero
This follows VSFilter's behavior.
-rw-r--r-- | libass/ass_render.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libass/ass_render.c b/libass/ass_render.c index 90df1b5..b9125b8 100644 --- a/libass/ass_render.c +++ b/libass/ass_render.c @@ -2035,7 +2035,9 @@ get_outline_glyph(ASS_Renderer *render_priv, int symbol, info->advance.y = d16_to_d6(info->glyph->advance.y); FT_Glyph_Get_CBox(info->glyph, FT_GLYPH_BBOX_SUBPIXELS, &info->bbox); - if (render_priv->state.style->BorderStyle == 3) { + if (render_priv->state.style->BorderStyle == 3 && + (render_priv->state.border_x > 0|| + render_priv->state.border_y > 0)) { FT_Glyph_Copy(info->glyph, &info->outline_glyph); draw_opaque_box(render_priv, symbol, info->outline_glyph, double_to_d6(render_priv->state.border_x * |