From: Subhransu Sekhar Mohanty Date: Thu, 5 Feb 2015 00:57:09 +0000 (+0900) Subject: evas/example : Fix the interface change in evas-vg-simple application X-Git-Tag: accepted/tizen/mobile/20150709.001446~55^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=03886df2edcfa7587e19ccde148735e4fb4d8792;p=platform%2Fupstream%2Fefl.git evas/example : Fix the interface change in evas-vg-simple application Change-Id: I3b793da73d1da1febb67d1621425e70fb2ac051e --- diff --git a/src/examples/evas/evas-vg-simple.c b/src/examples/evas/evas-vg-simple.c index b1ce7ea..cfaddd5 100644 --- a/src/examples/evas/evas-vg-simple.c +++ b/src/examples/evas/evas-vg-simple.c @@ -257,11 +257,13 @@ Point _curves_for_arc(int x, int y, int w, int h, // Special case fast paths if (startAngle == 0) { if (sweepLength == 360) { - for (int i = 11; i >= 0; --i) + int i; + for (i = 11; i >= 0; --i) curves[(*point_count)++] = points[i]; return points[12]; } else if (sweepLength == -360) { - for (int i = 1; i <= 12; ++i) + int i ; + for (i = 1; i <= 12; ++i) curves[(*point_count)++] = points[i]; return points[0]; } @@ -309,8 +311,8 @@ Point _curves_for_arc(int x, int y, int w, int h, Point startPoint, endPoint; _find_ellipse_coords(x, y, w, h, startAngle, sweepLength, &startPoint, &endPoint); - - for (int i = startSegment; i != end; i += delta) { + int i; + for (i = startSegment; i != end; i += delta) { const int quadrant = 3 - ((i % 4) + 4) % 4; const int j = 3 * quadrant; @@ -356,25 +358,26 @@ void _arcto(Efl_Gfx_Path_Command **path_cmd, double **points,int x, int y, int w int cx = x + (width)/2; int cy = y + (height)/2; - efl_graphics_path_append_move_to(path_cmd, points, cx, cy); + efl_gfx_path_append_move_to(path_cmd, points, cx, cy); - efl_graphics_path_append_line_to(path_cmd, points, curve_start.x, curve_start.y); - for (int i=0; i