diff options
author | Andrea Canciani <ranma42@gmail.com> | 2010-10-16 23:08:03 +0200 |
---|---|---|
committer | Andrea Canciani <ranma42@gmail.com> | 2010-10-29 17:31:21 +0200 |
commit | 14cc9846b302a990e65d7572e7f095a8873a213d (patch) | |
tree | b2edb6f4e82653325a4320839b5957fceae751e9 /src/cairo-path-fixed.c | |
parent | ac7b2a972097f4080ab6e5a29974c830b8b57a4f (diff) |
path: Replace _cairo_path_fixed_is_equal with _cairo_path_fixed_equal
Remove _cairo_path_fixed_is_equal and use _cairo_path_fixed_equal
instead.
The latter function can recognize that two paths are equal even if the
drawing commands have been partitioned in a different way in the buf
list.
Diffstat (limited to 'src/cairo-path-fixed.c')
-rw-r--r-- | src/cairo-path-fixed.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/src/cairo-path-fixed.c b/src/cairo-path-fixed.c index eea8630bd..b6495e1d7 100644 --- a/src/cairo-path-fixed.c +++ b/src/cairo-path-fixed.c @@ -1044,41 +1044,6 @@ _cairo_path_fixed_transform (cairo_path_fixed_t *path, } cairo_path_foreach_buf_end (buf, path); } -cairo_bool_t -_cairo_path_fixed_is_equal (const cairo_path_fixed_t *path, - const cairo_path_fixed_t *other) -{ - const cairo_path_buf_t *path_buf, *other_buf; - - if (path->current_point.x != other->current_point.x || - path->current_point.y != other->current_point.y || - path->has_current_point != other->has_current_point || - path->has_curve_to != other->has_curve_to || - path->is_rectilinear != other->is_rectilinear || - path->maybe_fill_region != other->maybe_fill_region || - path->last_move_point.x != other->last_move_point.x || - path->last_move_point.y != other->last_move_point.y) - { - return FALSE; - } - - other_buf = cairo_path_head (other); - cairo_path_foreach_buf_start (path_buf, path) { - if (path_buf->num_ops != other_buf->num_ops || - path_buf->num_points != other_buf->num_points || - memcmp (path_buf->op, other_buf->op, - sizeof (cairo_path_op_t) * path_buf->num_ops) != 0 || - memcmp (path_buf->points, other_buf->points, - sizeof (cairo_point_t) * path_buf->num_points) != 0) - { - return FALSE; - } - other_buf = cairo_path_buf_next (other_buf); - } cairo_path_foreach_buf_end (path_buf, path); - - return TRUE; -} - /* Closure for path flattening */ typedef struct cairo_path_flattener { double tolerance; |