From 4761333a1a9c00ce73927c4b2d8cecb3afe64750 Mon Sep 17 00:00:00 2001 From: Vincent Wei Date: Sun, 13 Jan 2019 16:20:08 +0800 Subject: [PATCH] skip null pixels for subpixel --- src/newgdi/glyph.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/newgdi/glyph.c b/src/newgdi/glyph.c index 09088b16..062fbd09 100644 --- a/src/newgdi/glyph.c +++ b/src/newgdi/glyph.c @@ -2915,6 +2915,13 @@ static void _dc_ft2subpixel_scan_line(PDC pdc, int xpos, int ypos, bits += 3; continue; } + + // VincentWei: skip null pixel + if (bits[0] == 0 && bits[1] == 0 && bits[2] == 0) { + bits += 3; + continue; + } + _glyph_move_to_pixel (pdc, x+xpos, ypos); pixel = _mem_get_pixel(pdc->cur_dst, GAL_BytesPerPixel (pdc->surface));