diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2017-03-12 11:19:09 -0500 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2017-03-22 12:07:26 +0100 |
commit | cfb66cd25bbf31857b471735e5ff0f7c2aea4d3c (patch) | |
tree | 8d8d06c9e2c880611a3c8cc025d8c35fe38d59ba /source/fitz/shade.c | |
parent | 3832d0c7ab87aa1f2b3a3dbebe43a37e4055d121 (diff) | |
download | mupdf-cfb66cd25bbf31857b471735e5ff0f7c2aea4d3c.tar.xz |
Rename fz_putc/puts/printf to fz_write_*.
Rename fz_write to fz_write_data.
Rename fz_write_buffer_* and fz_buffer_printf to fz_append_*.
Be consistent in naming:
fz_write_* calls write to fz_output.
fz_append_* calls append to fz_buffer.
Update documentation.
Diffstat (limited to 'source/fitz/shade.c')
-rw-r--r-- | source/fitz/shade.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/source/fitz/shade.c b/source/fitz/shade.c index 274d40f3..4e5b9a19 100644 --- a/source/fitz/shade.c +++ b/source/fitz/shade.c @@ -1090,39 +1090,39 @@ fz_print_shade(fz_context *ctx, fz_output *out, fz_shade *shade) { int i; - fz_printf(ctx, out, "shading {\n"); + fz_write_printf(ctx, out, "shading {\n"); switch (shade->type) { - case FZ_FUNCTION_BASED: fz_printf(ctx, out, "\ttype function_based\n"); break; - case FZ_LINEAR: fz_printf(ctx, out, "\ttype linear\n"); break; - case FZ_RADIAL: fz_printf(ctx, out, "\ttype radial\n"); break; - default: /* MESH */ fz_printf(ctx, out, "\ttype mesh\n"); break; + case FZ_FUNCTION_BASED: fz_write_printf(ctx, out, "\ttype function_based\n"); break; + case FZ_LINEAR: fz_write_printf(ctx, out, "\ttype linear\n"); break; + case FZ_RADIAL: fz_write_printf(ctx, out, "\ttype radial\n"); break; + default: /* MESH */ fz_write_printf(ctx, out, "\ttype mesh\n"); break; } - fz_printf(ctx, out, "\tbbox [%g %g %g %g]\n", + fz_write_printf(ctx, out, "\tbbox [%g %g %g %g]\n", shade->bbox.x0, shade->bbox.y0, shade->bbox.x1, shade->bbox.y1); - fz_printf(ctx, out, "\tcolorspace %s\n", fz_colorspace_name(ctx, shade->colorspace)); + fz_write_printf(ctx, out, "\tcolorspace %s\n", fz_colorspace_name(ctx, shade->colorspace)); - fz_printf(ctx, out, "\tmatrix [%g %g %g %g %g %g]\n", + fz_write_printf(ctx, out, "\tmatrix [%g %g %g %g %g %g]\n", shade->matrix.a, shade->matrix.b, shade->matrix.c, shade->matrix.d, shade->matrix.e, shade->matrix.f); if (shade->use_background) { int n = fz_colorspace_n(ctx, shade->colorspace); - fz_printf(ctx, out, "\tbackground ["); + fz_write_printf(ctx, out, "\tbackground ["); for (i = 0; i < n; i++) - fz_printf(ctx, out, "%s%g", i == 0 ? "" : " ", shade->background[i]); - fz_printf(ctx, out, "]\n"); + fz_write_printf(ctx, out, "%s%g", i == 0 ? "" : " ", shade->background[i]); + fz_write_printf(ctx, out, "]\n"); } if (shade->use_function) { - fz_printf(ctx, out, "\tfunction\n"); + fz_write_printf(ctx, out, "\tfunction\n"); } - fz_printf(ctx, out, "}\n"); + fz_write_printf(ctx, out, "}\n"); } |