canvas map: code refactoring.
remove dead code that unreachable looping.
This commit is contained in:
parent
03e12fe148
commit
42a7aae58c
|
@ -83,7 +83,7 @@ _map_horiz_coverage_calc(AALine *spans, int eidx, int y, int x, int x2)
|
|||
static void
|
||||
_map_aa_edge_calc_internal(AALine *spans, int eidx, int ystart, int yend)
|
||||
{
|
||||
int y;
|
||||
int y = 0;
|
||||
Evas_Coord_Point p_edge = {-1, -1}; //previous edge point
|
||||
Evas_Coord_Point edge_diff = {0, 0}; //temporary used for point distance
|
||||
|
||||
|
@ -114,12 +114,11 @@ do \
|
|||
|
||||
yend -= ystart;
|
||||
|
||||
//Find Start Edge
|
||||
for (y = 0; y < yend; y++)
|
||||
//Start Edge
|
||||
if (y < yend)
|
||||
{
|
||||
p_edge.x = spans[y].x[eidx];
|
||||
p_edge.y = y;
|
||||
break;
|
||||
}
|
||||
|
||||
//Calculates AA Edges
|
||||
|
|
Loading…
Reference in New Issue