summaryrefslogtreecommitdiff
path: root/src/lib/evas/common/evas_font_draw.c
diff options
context:
space:
mode:
authorHermet Park <hermetpark@gmail.com>2020-02-13 16:48:57 +0900
committerHermet Park <hermetpark@gmail.com>2020-02-13 16:50:21 +0900
commit6684f416261b096ebe8ee88c4caf91cc6e23fb49 (patch)
treeffe8d546c8470510b5d2710c1a5555c33265c1d2 /src/lib/evas/common/evas_font_draw.c
parent17f0d23e3736fad04f1888e9611d00bb4b4b581e (diff)
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
Diffstat (limited to '')
-rw-r--r--src/lib/evas/common/evas_font_draw.c2
1 files changed, 1 insertions, 1 deletions
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,
550 550
551 ptr = dst + (x + x1) + ((y + row) * dst_pitch); 551 ptr = dst + (x + x1) + ((y + row) * dst_pitch);
552 buf_ptr = buf + (row * w) + x1; 552 buf_ptr = buf + (row * w) + x1;
553 func(buf_ptr, mask, 0, ptr, w); 553 func(buf_ptr, mask, 0, ptr, x2 - x1);
554 } 554 }
555 } 555 }
556 else 556 else