summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrigori Goronzy <greg@blackbox>2009-07-19 16:13:39 +0200
committerGrigori Goronzy <greg@blackbox>2009-07-19 16:13:39 +0200
commit5f0aa788e9342db7c9ec0d4cd08f5bf19d85bbaa (patch)
treed7222dbe00bd9097f3a666f0c3532c8fedce5569
parent9ad13b1e609a5973a9f9288978b720d82a1382f7 (diff)
downloadlibass-5f0aa788e9342db7c9ec0d4cd08f5bf19d85bbaa.tar.bz2
libass-5f0aa788e9342db7c9ec0d4cd08f5bf19d85bbaa.tar.xz
Fix borders when a x/y component is zero
-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 b045a75..f86c73e 100644
--- a/libass/ass_render.c
+++ b/libass/ass_render.c
@@ -2071,7 +2071,7 @@ static void fix_freetype_stroker(FT_OutlineGlyph glyph, int border_x,
static void stroke_outline_glyph(ass_renderer_t *render_priv,
FT_OutlineGlyph *glyph, int sx, int sy)
{
- if (sx <= 0 || sy <= 0)
+ if (sx <= 0 && sy <= 0)
return;
fix_freetype_stroker(*glyph, sx, sy);