evas map: ++safety anti-aliasing processing.

there was a potential case that overflow range.
here it kicks it out.
This commit is contained in:
Hermet Park 2019-03-05 17:11:20 +09:00
parent aee5d501c9
commit 40bc81ae2b
1 changed files with 6 additions and 2 deletions

View File

@ -234,8 +234,12 @@ _calc_aa_edges_internal(Line *spans, int eidx, int ystart, int yend)
calc_horiz_coverage(spans, eidx, y, tx[0], tx[1]);
}
else
calc_vert_coverage(spans, eidx, (y + 1), (edge_diff.y + 2),
(prev_dir & 0x00000001));
{
++y;
if (y > yend) y = yend;
calc_vert_coverage(spans, eidx, y, (edge_diff.y + 2),
(prev_dir & 0x00000001));
}
}
static void