aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2013-03-20 15:18:54 +0000
committerChris Michael <cp.michael@samsung.com>2013-03-26 08:53:34 +0000
commita472cdc66aa0d7b5fee92b7063be2b6d4a6c66ab (patch)
tree269845a206e361933662628dd54fa271377a3636
parenteina: add eina_list_shuffle (diff)
downloadefl-a472cdc66aa0d7b5fee92b7063be2b6d4a6c66ab.tar.gz
Evas gl: Fixed warnings in the gl engine.
-rw-r--r--src/modules/evas/engines/gl_common/evas_gl_polygon.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/evas/engines/gl_common/evas_gl_polygon.c b/src/modules/evas/engines/gl_common/evas_gl_polygon.c
index 3265251108..536d2fcf95 100644
--- a/src/modules/evas/engines/gl_common/evas_gl_polygon.c
+++ b/src/modules/evas/engines/gl_common/evas_gl_polygon.c
@@ -128,7 +128,7 @@ evas_gl_common_poly_draw(Evas_Engine_GL_Context *gc, Evas_GL_Polygon *poly, int
int x = 0, y = 0, w = 0, h = 0;
Eina_List *l;
- int n, k, num_active_edges, y0, y1, *sorted_index, j;
+ int n, k, num_active_edges, yy0, yy1, *sorted_index, j;
RGBA_Edge *edges;
RGBA_Vertex *point;
Evas_GL_Polygon_Point *pt;
@@ -181,14 +181,14 @@ evas_gl_common_poly_draw(Evas_Engine_GL_Context *gc, Evas_GL_Polygon *poly, int
k++;
}
- y0 = MAX(cy, ceil(point[sorted_index[0]].y - 0.5));
- y1 = MIN(cy + ch - 1, floor(point[sorted_index[n - 1]].y - 0.5));
+ yy0 = MAX(cy, ceil(point[sorted_index[0]].y - 0.5));
+ yy1 = MIN(cy + ch - 1, floor(point[sorted_index[n - 1]].y - 0.5));
k = 0;
num_active_edges = 0;
spans = NULL;
- for (y = y0; y <= y1; y++)
+ for (y = yy0; y <= yy1; y++)
{
for (; (k < n) && (point[sorted_index[k]].y <= ((double)y + 0.5)); k++)
{