diff options
author | Andrea Canciani <ranma42@gmail.com> | 2010-10-17 15:02:54 +0200 |
---|---|---|
committer | Andrea Canciani <ranma42@gmail.com> | 2010-10-29 17:31:23 +0200 |
commit | 9d84dff0c6a7be5abf1f931eabe77afca21f04aa (patch) | |
tree | 3af0709be537f80b96e0c8f9d4d37e8b14b12f29 /src/cairo-path-fixed.c | |
parent | 17fef2fe4ddcba8d0811922f012add50109eb0e2 (diff) |
path: Cleanup close_path
Instead of explicitly calling _cairo_fixed_move_to, setting the
needs_move_to flags is sufficient because the current_point is already
updeted correctly.
Diffstat (limited to 'src/cairo-path-fixed.c')
-rw-r--r-- | src/cairo-path-fixed.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/cairo-path-fixed.c b/src/cairo-path-fixed.c index 812728bc4..e09426d2b 100644 --- a/src/cairo-path-fixed.c +++ b/src/cairo-path-fixed.c @@ -686,13 +686,9 @@ _cairo_path_fixed_close_path (cairo_path_fixed_t *path) if (_cairo_path_fixed_last_op (path) == CAIRO_PATH_OP_LINE_TO) _cairo_path_fixed_drop_line_to (path); - status = _cairo_path_fixed_add (path, CAIRO_PATH_OP_CLOSE_PATH, NULL, 0); - if (unlikely (status)) - return status; + path->needs_move_to = TRUE; /* After close_path, add an implicit move_to */ - return _cairo_path_fixed_move_to (path, - path->last_move_point.x, - path->last_move_point.y); + return _cairo_path_fixed_add (path, CAIRO_PATH_OP_CLOSE_PATH, NULL, 0); } cairo_bool_t |