evas map: ++Safety for range overflow.

This might fix this issue.

{T8199}
This commit is contained in:
Hermet Park 2020-01-03 20:51:21 +09:00
parent 26e07862e9
commit 21c043f5fa
1 changed files with 1 additions and 1 deletions

View File

@ -391,8 +391,8 @@ _map_triangle_draw_linear(RGBA_Image *src, RGBA_Image *dst,
if (aa_spans->lines[ay].x[0] > x1) aa_spans->lines[ay].x[0] = x1;
if (aa_spans->lines[ay].x[1] < x2) aa_spans->lines[ay].x[1] = x2;
}
if ((x2 - x1) < 1) goto next;
if ((x1 >= (cx + cw)) || (x2 <= cx)) goto next;
//Perform subtexel pre-stepping on UV
dx = 1 - (_xa - x1);