From edf2bf3d8a5d9a37c9221092fd14a45fd4ef2fca Mon Sep 17 00:00:00 2001 From: Neil Roberts Date: Thu, 22 Apr 2010 18:14:40 +0100 Subject: [PATCH] cogl-path: Make cogl_path_arc_rel static 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. --- cogl/cogl-path.c | 56 ++++++++++++++++++++++++------------------------ 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/cogl/cogl-path.c b/cogl/cogl-path.c index 111466e6b..d78b5bd22 100644 --- a/cogl/cogl-path.c +++ b/cogl/cogl-path.c @@ -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 (); }