From 5f0aa788e9342db7c9ec0d4cd08f5bf19d85bbaa Mon Sep 17 00:00:00 2001 From: Grigori Goronzy Date: Sun, 19 Jul 2009 16:13:39 +0200 Subject: Fix borders when a x/y component is zero --- libass/ass_render.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3