diff options
author | Andrea Canciani <ranma42@gmail.com> | 2010-10-17 11:53:58 +0200 |
---|---|---|
committer | Andrea Canciani <ranma42@gmail.com> | 2010-10-29 17:31:22 +0200 |
commit | 4075ed9686483defa9fb1cffca6509f079f9a91d (patch) | |
tree | 28cb047457f30f6979506e142dd9936545b70422 /src/cairo-path-fixed.c | |
parent | a8763d8fdeeb16323b8641e168475f77d73908a3 (diff) | |
download | cairo-4075ed9686483defa9fb1cffca6509f079f9a91d.tar.gz |
path: Rename _cairo_path_last_op to _cairo_path_fixed_last_op
Aestetical change, to make the naming consistent with that of the
other functions.
Diffstat (limited to 'src/cairo-path-fixed.c')
-rw-r--r-- | src/cairo-path-fixed.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/cairo-path-fixed.c b/src/cairo-path-fixed.c index a0e04ac0f..dfc1474b3 100644 --- a/src/cairo-path-fixed.c +++ b/src/cairo-path-fixed.c @@ -362,8 +362,8 @@ _cairo_path_fixed_destroy (cairo_path_fixed_t *path) free (path); } -static cairo_path_op_t -_cairo_path_last_op (cairo_path_fixed_t *path) +static inline cairo_path_op_t +_cairo_path_fixed_last_op (cairo_path_fixed_t *path) { cairo_path_buf_t *buf; @@ -402,7 +402,7 @@ _cairo_path_fixed_move_to (cairo_path_fixed_t *path, /* If the previous op was also a MOVE_TO, then just change its * point rather than adding a new op. */ - if (_cairo_path_last_op (path) == CAIRO_PATH_OP_MOVE_TO) { + if (_cairo_path_fixed_last_op (path) == CAIRO_PATH_OP_MOVE_TO) { cairo_path_buf_t *buf; buf = cairo_path_tail (path); @@ -477,7 +477,7 @@ _cairo_path_fixed_line_to (cairo_path_fixed_t *path, * a move-to followed by a degenerate line-to is a valid path for * stroking, but at all other times is simply a degenerate segment. */ - if (_cairo_path_last_op (path) != CAIRO_PATH_OP_MOVE_TO) { + if (_cairo_path_fixed_last_op (path) != CAIRO_PATH_OP_MOVE_TO) { if (x == path->current_point.x && y == path->current_point.y) return CAIRO_STATUS_SUCCESS; } @@ -485,7 +485,7 @@ _cairo_path_fixed_line_to (cairo_path_fixed_t *path, /* If the previous op was also a LINE_TO with the same gradient, * then just change its end-point rather than adding a new op. */ - if (_cairo_path_last_op (path) == CAIRO_PATH_OP_LINE_TO) { + if (_cairo_path_fixed_last_op (path) == CAIRO_PATH_OP_LINE_TO) { cairo_path_buf_t *buf; const cairo_point_t *p; @@ -628,7 +628,7 @@ _cairo_path_fixed_close_path (cairo_path_fixed_t *path) return CAIRO_STATUS_SUCCESS; /* If the previous op was also a LINE_TO back to the start, discard it */ - if (_cairo_path_last_op (path) == CAIRO_PATH_OP_LINE_TO) { + if (_cairo_path_fixed_last_op (path) == CAIRO_PATH_OP_LINE_TO) { if (path->current_point.x == path->last_move_point.x && path->current_point.y == path->last_move_point.y) { |