From 6684f416261b096ebe8ee88c4caf91cc6e23fb49 Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Thu, 13 Feb 2020 16:48:57 +0900 Subject: [PATCH] canvas font: correct wrong masking length. the masking length should be x2 - x1 otherwise, it will try to mask over regions with dirty pixels. @fix --- src/lib/evas/common/evas_font_draw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/evas/common/evas_font_draw.c b/src/lib/evas/common/evas_font_draw.c index f6aa4d5424..3a8f633bfd 100644 --- a/src/lib/evas/common/evas_font_draw.c +++ b/src/lib/evas/common/evas_font_draw.c @@ -550,7 +550,7 @@ evas_common_font_glyph_draw(RGBA_Font_Glyph *fg, ptr = dst + (x + x1) + ((y + row) * dst_pitch); buf_ptr = buf + (row * w) + x1; - func(buf_ptr, mask, 0, ptr, w); + func(buf_ptr, mask, 0, ptr, x2 - x1); } } else