mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 10:00:45 -05:00
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,14 +838,14 @@ cogl_path_arc (float center_x,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
static void
|
||||||
cogl_path_arc_rel (float center_x,
|
_cogl_path_rel_arc (float center_x,
|
||||||
float center_y,
|
float center_y,
|
||||||
float radius_x,
|
float radius_x,
|
||||||
float radius_y,
|
float radius_y,
|
||||||
float angle_1,
|
float angle_1,
|
||||||
float angle_2,
|
float angle_2,
|
||||||
float angle_step)
|
float angle_step)
|
||||||
{
|
{
|
||||||
CoglPath *path;
|
CoglPath *path;
|
||||||
|
|
||||||
@ -896,36 +896,36 @@ cogl_path_round_rectangle (float x_1,
|
|||||||
path = COGL_PATH (ctx->current_path);
|
path = COGL_PATH (ctx->current_path);
|
||||||
|
|
||||||
cogl_path_move_to (x_1, y_1 + radius);
|
cogl_path_move_to (x_1, y_1 + radius);
|
||||||
cogl_path_arc_rel (radius, 0,
|
_cogl_path_rel_arc (radius, 0,
|
||||||
radius, radius,
|
radius, radius,
|
||||||
180,
|
180,
|
||||||
270,
|
270,
|
||||||
arc_step);
|
arc_step);
|
||||||
|
|
||||||
cogl_path_line_to (path->path_pen.x + inner_width,
|
cogl_path_line_to (path->path_pen.x + inner_width,
|
||||||
path->path_pen.y);
|
path->path_pen.y);
|
||||||
cogl_path_arc_rel (0, radius,
|
_cogl_path_rel_arc (0, radius,
|
||||||
radius, radius,
|
radius, radius,
|
||||||
-90,
|
-90,
|
||||||
0,
|
0,
|
||||||
arc_step);
|
arc_step);
|
||||||
|
|
||||||
cogl_path_line_to (path->path_pen.x,
|
cogl_path_line_to (path->path_pen.x,
|
||||||
path->path_pen.y + inner_height);
|
path->path_pen.y + inner_height);
|
||||||
|
|
||||||
cogl_path_arc_rel (-radius, 0,
|
_cogl_path_rel_arc (-radius, 0,
|
||||||
radius, radius,
|
radius, radius,
|
||||||
0,
|
0,
|
||||||
90,
|
90,
|
||||||
arc_step);
|
arc_step);
|
||||||
|
|
||||||
cogl_path_line_to (path->path_pen.x - inner_width,
|
cogl_path_line_to (path->path_pen.x - inner_width,
|
||||||
path->path_pen.y);
|
path->path_pen.y);
|
||||||
cogl_path_arc_rel (0, -radius,
|
_cogl_path_rel_arc (0, -radius,
|
||||||
radius, radius,
|
radius, radius,
|
||||||
90,
|
90,
|
||||||
180,
|
180,
|
||||||
arc_step);
|
arc_step);
|
||||||
|
|
||||||
cogl_path_close ();
|
cogl_path_close ();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user