cogl-path: Make cogl_path_arc_rel static
authorNeil Roberts <neil@linux.intel.com>
Thu, 22 Apr 2010 17:14:40 +0000 (18:14 +0100)
committerNeil Roberts <neil@linux.intel.com>
Thu, 22 Apr 2010 17:17:59 +0000 (18:17 +0100)
cogl_path_arc_rel was never in any public headers so it isn't part of
the public API. It also has a slightly inconsistent name because the
rest of the relative path functions are called cogl_path_rel_*. This
patch makes it static for now to make it more obvious that it isn't
public. The name has changed to _cogl_path_rel_arc.

clutter/cogl/cogl/cogl-path.c

index 111466e..d78b5bd 100644 (file)
@@ -838,14 +838,14 @@ cogl_path_arc (float center_x,
 }
 
 
-void
-cogl_path_arc_rel (float center_x,
-                  float center_y,
-                  float radius_x,
-                  float radius_y,
-                  float angle_1,
-                  float angle_2,
-                  float angle_step)
+static void
+_cogl_path_rel_arc (float center_x,
+                    float center_y,
+                    float radius_x,
+                    float radius_y,
+                    float angle_1,
+                    float angle_2,
+                    float angle_step)
 {
   CoglPath *path;
 
@@ -896,36 +896,36 @@ cogl_path_round_rectangle (float x_1,
   path = COGL_PATH (ctx->current_path);
 
   cogl_path_move_to (x_1, y_1 + radius);
-  cogl_path_arc_rel (radius, 0,
-                    radius, radius,
-                    180,
-                    270,
-                    arc_step);
+  _cogl_path_rel_arc (radius, 0,
+                      radius, radius,
+                      180,
+                      270,
+                      arc_step);
 
   cogl_path_line_to       (path->path_pen.x + inner_width,
                            path->path_pen.y);
-  cogl_path_arc_rel       (0, radius,
-                          radius, radius,
-                          -90,
-                          0,
-                          arc_step);
+  _cogl_path_rel_arc      (0, radius,
+                           radius, radius,
+                           -90,
+                           0,
+                           arc_step);
 
   cogl_path_line_to       (path->path_pen.x,
                            path->path_pen.y + inner_height);
 
-  cogl_path_arc_rel       (-radius, 0,
-                          radius, radius,
-                          0,
-                          90,
-                          arc_step);
+  _cogl_path_rel_arc      (-radius, 0,
+                           radius, radius,
+                           0,
+                           90,
+                           arc_step);
 
   cogl_path_line_to       (path->path_pen.x - inner_width,
                            path->path_pen.y);
-  cogl_path_arc_rel       (0, -radius,
-                          radius, radius,
-                          90,
-                          180,
-                          arc_step);
+  _cogl_path_rel_arc      (0, -radius,
+                           radius, radius,
+                           90,
+                           180,
+                           arc_step);
 
   cogl_path_close ();
 }