From 80d6490e6d54f822de6d36219ce08e6a8ad33137 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Wed, 28 Sep 2016 22:25:16 -0400 Subject: Hide internals of fz_colorspace The implementation does not need to be in the public API. --- source/fitz/trace-device.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'source/fitz/trace-device.c') diff --git a/source/fitz/trace-device.c b/source/fitz/trace-device.c index 86e059b5..bcb68bf8 100644 --- a/source/fitz/trace-device.c +++ b/source/fitz/trace-device.c @@ -16,11 +16,12 @@ fz_trace_matrix(fz_context *ctx, fz_output *out, const fz_matrix *ctm) static void fz_trace_color(fz_context *ctx, fz_output *out, fz_colorspace *colorspace, const float *color, float alpha) { - int i; + int i, n; if (colorspace) { - fz_printf(ctx, out, " colorspace=\"%s\" color=\"", colorspace->name); - for (i = 0; i < colorspace->n; i++) + n = fz_colorspace_n(ctx, colorspace); + fz_printf(ctx, out, " colorspace=\"%s\" color=\"", fz_colorspace_name(ctx, colorspace)); + for (i = 0; i < n; i++) fz_printf(ctx, out, "%s%g", i == 0 ? "" : " ", color[i]); fz_printf(ctx, out, "\""); } -- cgit v1.2.3