summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines/gl_common/evas_gl_polygon.c
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2013-03-20 15:18:54 +0000
committerTom Hacohen <tom@stosb.com>2013-03-20 15:18:54 +0000
commitaef97ce5a594e61106281a2ec943b5f3987b96a6 (patch)
tree269845a206e361933662628dd54fa271377a3636 /src/modules/evas/engines/gl_common/evas_gl_polygon.c
parentb4cad3c3702768cab70d5acf18197bee224f0456 (diff)
Evas gl: Fixed warnings in the gl engine.
Diffstat (limited to 'src/modules/evas/engines/gl_common/evas_gl_polygon.c')
-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 3265251..536d2fc 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
128 int x = 0, y = 0, w = 0, h = 0; 128 int x = 0, y = 0, w = 0, h = 0;
129 129
130 Eina_List *l; 130 Eina_List *l;
131 int n, k, num_active_edges, y0, y1, *sorted_index, j; 131 int n, k, num_active_edges, yy0, yy1, *sorted_index, j;
132 RGBA_Edge *edges; 132 RGBA_Edge *edges;
133 RGBA_Vertex *point; 133 RGBA_Vertex *point;
134 Evas_GL_Polygon_Point *pt; 134 Evas_GL_Polygon_Point *pt;
@@ -181,14 +181,14 @@ evas_gl_common_poly_draw(Evas_Engine_GL_Context *gc, Evas_GL_Polygon *poly, int
181 k++; 181 k++;
182 } 182 }
183 183
184 y0 = MAX(cy, ceil(point[sorted_index[0]].y - 0.5)); 184 yy0 = MAX(cy, ceil(point[sorted_index[0]].y - 0.5));
185 y1 = MIN(cy + ch - 1, floor(point[sorted_index[n - 1]].y - 0.5)); 185 yy1 = MIN(cy + ch - 1, floor(point[sorted_index[n - 1]].y - 0.5));
186 186
187 k = 0; 187 k = 0;
188 num_active_edges = 0; 188 num_active_edges = 0;
189 spans = NULL; 189 spans = NULL;
190 190
191 for (y = y0; y <= y1; y++) 191 for (y = yy0; y <= yy1; y++)
192 { 192 {
193 for (; (k < n) && (point[sorted_index[k]].y <= ((double)y + 0.5)); k++) 193 for (; (k < n) && (point[sorted_index[k]].y <= ((double)y + 0.5)); k++)
194 { 194 {