diff options
Diffstat (limited to '')
-rw-r--r-- | libraries/evas/src/lib/engines/common/evas_polygon_main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libraries/evas/src/lib/engines/common/evas_polygon_main.c b/libraries/evas/src/lib/engines/common/evas_polygon_main.c index ea0bf13..6840d60 100644 --- a/libraries/evas/src/lib/engines/common/evas_polygon_main.c +++ b/libraries/evas/src/lib/engines/common/evas_polygon_main.c | |||
@@ -133,7 +133,7 @@ evas_common_polygon_draw(RGBA_Image *dst, RGBA_Draw_Context *dc, RGBA_Polygon_Po | |||
133 | int num_active_edges; | 133 | int num_active_edges; |
134 | int n; | 134 | int n; |
135 | int i, j, k; | 135 | int i, j, k; |
136 | int y0, y1, yi; | 136 | int yy0, yy1, yi; |
137 | int ext_x, ext_y, ext_w, ext_h; | 137 | int ext_x, ext_y, ext_w, ext_h; |
138 | int *sorted_index; | 138 | int *sorted_index; |
139 | 139 | ||
@@ -211,14 +211,14 @@ evas_common_polygon_draw(RGBA_Image *dst, RGBA_Draw_Context *dc, RGBA_Polygon_Po | |||
211 | k++; | 211 | k++; |
212 | } | 212 | } |
213 | 213 | ||
214 | y0 = MAX(ext_y, ceil(point[sorted_index[0]].y - 0.5)); | 214 | yy0 = MAX(ext_y, ceil(point[sorted_index[0]].y - 0.5)); |
215 | y1 = MIN(ext_y + ext_h - 1, floor(point[sorted_index[n - 1]].y - 0.5)); | 215 | yy1 = MIN(ext_y + ext_h - 1, floor(point[sorted_index[n - 1]].y - 0.5)); |
216 | 216 | ||
217 | k = 0; | 217 | k = 0; |
218 | num_active_edges = 0; | 218 | num_active_edges = 0; |
219 | spans = NULL; | 219 | spans = NULL; |
220 | 220 | ||
221 | for (yi = y0; yi <= y1; yi++) | 221 | for (yi = yy0; yi <= yy1; yi++) |
222 | { | 222 | { |
223 | for (; (k < n) && (point[sorted_index[k]].y <= ((double)yi + 0.5)); k++) | 223 | for (; (k < n) && (point[sorted_index[k]].y <= ((double)yi + 0.5)); k++) |
224 | { | 224 | { |