diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-08-16 17:18:09 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-08-18 12:10:20 +0100 |
commit | a8232ff77cc6eff866494c5a408d914907d643ad (patch) | |
tree | 3e78d3370ec711649b293f33c493787f1a7ebc68 /src/cairo-surface-observer.c | |
parent | e4b4b6bfd92000dee2d8384ad64d2e2cfd998bf5 (diff) | |
download | cairo-a8232ff77cc6eff866494c5a408d914907d643ad.tar.gz |
observer: only print out the non-zero path types
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/cairo-surface-observer.c')
-rw-r--r-- | src/cairo-surface-observer.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/cairo-surface-observer.c b/src/cairo-surface-observer.c index 314d0e4c7..364447bc5 100644 --- a/src/cairo-surface-observer.c +++ b/src/cairo-surface-observer.c @@ -1010,13 +1010,16 @@ static void print_path (cairo_output_stream_t *stream, const struct path *p) { - _cairo_output_stream_printf (stream, - " path: %d empty, %d pixel-aligned, %d rectilinear, %d straight, %d curved\n", - p->type[0], - p->type[1], - p->type[2], - p->type[3], - p->type[4]); + static const char *names[] = { + "empty", + "pixel-aligned", + "rectliinear", + "straight", + "curved", + }; + _cairo_output_stream_printf (stream, " path:"); + print_array (stream, p->type, names, ARRAY_LENGTH (names)); + _cairo_output_stream_printf (stream, "\n"); } static void |