mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-23 12:50:23 +01:00
observer: only print out the non-zero path types
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
e4b4b6bfd9
commit
a8232ff77c
1 changed files with 10 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue