summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHermet Park <hermetpark@gmail.com>2019-03-05 17:11:20 +0900
committerHermet Park <hermetpark@gmail.com>2019-03-05 17:11:20 +0900
commit40bc81ae2ba30c371439fde3381cba16bf2b0677 (patch)
tree6279edb19e62242cf8c2175828a102aa2f5bf40d /src
parentaee5d501c93bf782d5eddc0dc726631dfd498bc0 (diff)
evas map: ++safety anti-aliasing processing.
there was a potential case that overflow range. here it kicks it out.
Diffstat (limited to 'src')
-rw-r--r--src/lib/evas/common/evas_map_image_aa.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lib/evas/common/evas_map_image_aa.c b/src/lib/evas/common/evas_map_image_aa.c
index 6c829eac17..247ccc2367 100644
--- a/src/lib/evas/common/evas_map_image_aa.c
+++ b/src/lib/evas/common/evas_map_image_aa.c
@@ -234,8 +234,12 @@ _calc_aa_edges_internal(Line *spans, int eidx, int ystart, int yend)
234 calc_horiz_coverage(spans, eidx, y, tx[0], tx[1]); 234 calc_horiz_coverage(spans, eidx, y, tx[0], tx[1]);
235 } 235 }
236 else 236 else
237 calc_vert_coverage(spans, eidx, (y + 1), (edge_diff.y + 2), 237 {
238 (prev_dir & 0x00000001)); 238 ++y;
239 if (y > yend) y = yend;
240 calc_vert_coverage(spans, eidx, y, (edge_diff.y + 2),
241 (prev_dir & 0x00000001));
242 }
239} 243}
240 244
241static void 245static void