observer: only print out the non-zero path types

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2011-08-16 17:18:09 +01:00
parent e4b4b6bfd9
commit a8232ff77c

View file

@ -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