summaryrefslogtreecommitdiff
path: root/src/lib/evas/common/evas_map_image_internal_high.c
diff options
context:
space:
mode:
authorHermet Park <hermetpark@gmail.com>2019-08-26 19:23:43 +0900
committerHermet Park <hermetpark@gmail.com>2019-08-26 19:23:43 +0900
commit42a7aae58c326dca37deac7d96fd4c3e69299e40 (patch)
tree9837b449f0ce2fe994f0d9fb553165cee80b83e1 /src/lib/evas/common/evas_map_image_internal_high.c
parent03e12fe14823b1ea9e59c97640a1050c838c438f (diff)
canvas map: code refactoring.
remove dead code that unreachable looping.
Diffstat (limited to '')
-rw-r--r--src/lib/evas/common/evas_map_image_internal_high.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lib/evas/common/evas_map_image_internal_high.c b/src/lib/evas/common/evas_map_image_internal_high.c
index 30748023d9..1199e039ba 100644
--- a/src/lib/evas/common/evas_map_image_internal_high.c
+++ b/src/lib/evas/common/evas_map_image_internal_high.c
@@ -83,7 +83,7 @@ _map_horiz_coverage_calc(AALine *spans, int eidx, int y, int x, int x2)
83static void 83static void
84_map_aa_edge_calc_internal(AALine *spans, int eidx, int ystart, int yend) 84_map_aa_edge_calc_internal(AALine *spans, int eidx, int ystart, int yend)
85{ 85{
86 int y; 86 int y = 0;
87 Evas_Coord_Point p_edge = {-1, -1}; //previous edge point 87 Evas_Coord_Point p_edge = {-1, -1}; //previous edge point
88 Evas_Coord_Point edge_diff = {0, 0}; //temporary used for point distance 88 Evas_Coord_Point edge_diff = {0, 0}; //temporary used for point distance
89 89
@@ -114,12 +114,11 @@ do \
114 114
115 yend -= ystart; 115 yend -= ystart;
116 116
117 //Find Start Edge 117 //Start Edge
118 for (y = 0; y < yend; y++) 118 if (y < yend)
119 { 119 {
120 p_edge.x = spans[y].x[eidx]; 120 p_edge.x = spans[y].x[eidx];
121 p_edge.y = y; 121 p_edge.y = y;
122 break;
123 } 122 }
124 123
125 //Calculates AA Edges 124 //Calculates AA Edges