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
This commit is contained in:
Hermet Park 2020-02-13 16:48:57 +09:00
parent 17f0d23e37
commit 6684f41626
1 changed files with 1 additions and 1 deletions

View File

@ -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