hermet pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=6684f416261b096ebe8ee88c4caf91cc6e23fb49

commit 6684f416261b096ebe8ee88c4caf91cc6e23fb49
Author: Hermet Park <[email protected]>
Date:   Thu Feb 13 16:48:57 2020 +0900

    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

-- 


Reply via email to