]> granicus.if.org Git - libass/commitdiff
Fix borders when a x/y component is zero
authorGrigori Goronzy <greg@blackbox>
Sun, 19 Jul 2009 14:13:39 +0000 (16:13 +0200)
committerGrigori Goronzy <greg@blackbox>
Sun, 19 Jul 2009 14:13:39 +0000 (16:13 +0200)
libass/ass_render.c

index b045a75fb6eba0032b611b99f2aded7acf188bb5..f86c73e95634d179e444fc8deacbaad0744699e9 100644 (file)
@@ -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);