diff options
author | Andrea Canciani <ranma42@gmail.com> | 2010-10-21 16:59:01 +0200 |
---|---|---|
committer | Andrea Canciani <ranma42@gmail.com> | 2010-10-29 17:31:23 +0200 |
commit | 34f1db13a13f80733a7eb5bef4693c4df7a6fb4e (patch) | |
tree | 5cf53894204a3aae7ba39d414cf78f28b09fafc2 /src/cairo-path-fixed.c | |
parent | e8e614db92c43ed1b22251a1903396c99022326c (diff) | |
download | cairo-34f1db13a13f80733a7eb5bef4693c4df7a6fb4e.tar.gz |
path: Log flags
When logging path operations, also log computed flags.
Diffstat (limited to 'src/cairo-path-fixed.c')
-rw-r--r-- | src/cairo-path-fixed.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/cairo-path-fixed.c b/src/cairo-path-fixed.c index 0f8bd5ff2..76fc196f6 100644 --- a/src/cairo-path-fixed.c +++ b/src/cairo-path-fixed.c @@ -749,9 +749,20 @@ _cairo_path_fixed_add (cairo_path_fixed_t *path, } len += snprintf (buf + len, sizeof (buf), "]"); +#define STRINGIFYFLAG(x) (path->x ? #x " " : "") fprintf (stderr, - "_cairo_path_fixed_add (%s, %s)\n", - op_str[(int) op], buf); + "_cairo_path_fixed_add (%s, %s) [%s%s%s%s%s%s%s%s]\n", + op_str[(int) op], buf, + STRINGIFYFLAG(has_current_point), + STRINGIFYFLAG(needs_move_to), + STRINGIFYFLAG(has_extents), + STRINGIFYFLAG(has_curve_to), + STRINGIFYFLAG(stroke_is_rectilinear), + STRINGIFYFLAG(fill_is_rectilinear), + STRINGIFYFLAG(fill_is_empty), + STRINGIFYFLAG(fill_maybe_region) + ); +#undef STRINGIFYFLAG } _cairo_path_buf_add_op (buf, op); |