mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-22 20:30:25 +01:00
Rename cairo_lines_compare_at_y into _cairo_lines_compare_at_y and fix syntax
Fixes https://gitlab.freedesktop.org/cairo/cairo/-/issues/467
This commit is contained in:
parent
44f808fce9
commit
d2a37ba60e
4 changed files with 5 additions and 4 deletions
|
|
@ -368,7 +368,7 @@ _cairo_bo_sweep_line_compare_edges (const cairo_bo_sweep_line_t *sweep_line,
|
|||
{
|
||||
int cmp;
|
||||
|
||||
cmp = cairo_lines_compare_at_y (&a->edge.line,
|
||||
cmp = _cairo_lines_compare_at_y (&a->edge.line,
|
||||
&b->edge.line,
|
||||
sweep_line->current_y);
|
||||
if (cmp)
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@
|
|||
CAIRO_BEGIN_DECLS
|
||||
|
||||
cairo_private int
|
||||
cairo_lines_compare_at_y(const cairo_line_t *a,
|
||||
_cairo_lines_compare_at_y (const cairo_line_t *a,
|
||||
const cairo_line_t *b,
|
||||
int y);
|
||||
|
||||
|
|
|
|||
|
|
@ -278,7 +278,8 @@ static int bbox_compare (const cairo_line_t *a,
|
|||
return 0;
|
||||
}
|
||||
|
||||
int cairo_lines_compare_at_y (const cairo_line_t *a,
|
||||
int
|
||||
_cairo_lines_compare_at_y (const cairo_line_t *a,
|
||||
const cairo_line_t *b,
|
||||
int y)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -404,7 +404,7 @@ static void add_tri (cairo_traps_t *traps,
|
|||
y2 = tmp;
|
||||
}
|
||||
|
||||
if (cairo_lines_compare_at_y (left, right, y1) > 0) {
|
||||
if (_cairo_lines_compare_at_y (left, right, y1) > 0) {
|
||||
const cairo_line_t *tmp = left;
|
||||
left = right;
|
||||
right = tmp;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue