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.
This commit is contained in:
parent
2b8abbdaa8
commit
edf2bf3d8a
@ -838,8 +838,8 @@ cogl_path_arc (float center_x,
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
cogl_path_arc_rel (float center_x,
|
||||
static void
|
||||
_cogl_path_rel_arc (float center_x,
|
||||
float center_y,
|
||||
float radius_x,
|
||||
float radius_y,
|
||||
@ -896,7 +896,7 @@ 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,
|
||||
_cogl_path_rel_arc (radius, 0,
|
||||
radius, radius,
|
||||
180,
|
||||
270,
|
||||
@ -904,7 +904,7 @@ cogl_path_round_rectangle (float x_1,
|
||||
|
||||
cogl_path_line_to (path->path_pen.x + inner_width,
|
||||
path->path_pen.y);
|
||||
cogl_path_arc_rel (0, radius,
|
||||
_cogl_path_rel_arc (0, radius,
|
||||
radius, radius,
|
||||
-90,
|
||||
0,
|
||||
@ -913,7 +913,7 @@ cogl_path_round_rectangle (float x_1,
|
||||
cogl_path_line_to (path->path_pen.x,
|
||||
path->path_pen.y + inner_height);
|
||||
|
||||
cogl_path_arc_rel (-radius, 0,
|
||||
_cogl_path_rel_arc (-radius, 0,
|
||||
radius, radius,
|
||||
0,
|
||||
90,
|
||||
@ -921,7 +921,7 @@ cogl_path_round_rectangle (float x_1,
|
||||
|
||||
cogl_path_line_to (path->path_pen.x - inner_width,
|
||||
path->path_pen.y);
|
||||
cogl_path_arc_rel (0, -radius,
|
||||
_cogl_path_rel_arc (0, -radius,
|
||||
radius, radius,
|
||||
90,
|
||||
180,
|
||||
|
Loading…
Reference in New Issue
Block a user