diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2011-03-29 13:25:23 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2011-03-29 13:25:23 +0200 |
commit | 11bfb3342a48130ef001af89dea7674d0990d8eb (patch) | |
tree | 5d5b0cd056c1b0f555888d3bb981b5c85d2b73c6 /fitz/res_shade.c | |
parent | 83bda0c57916650fdfce72e0ac8a9cfad1b74be9 (diff) | |
download | mupdf-11bfb3342a48130ef001af89dea7674d0990d8eb.tar.xz |
Don't shorten colorspace to 'cs' in structs and other names.
Diffstat (limited to 'fitz/res_shade.c')
-rw-r--r-- | fitz/res_shade.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/fitz/res_shade.c b/fitz/res_shade.c index d6108236..e4afa14a 100644 --- a/fitz/res_shade.c +++ b/fitz/res_shade.c @@ -12,8 +12,8 @@ fz_dropshade(fz_shade *shade) { if (shade && --shade->refs == 0) { - if (shade->cs) - fz_dropcolorspace(shade->cs); + if (shade->colorspace) + fz_dropcolorspace(shade->colorspace); fz_free(shade->mesh); fz_free(shade); } @@ -28,7 +28,7 @@ fz_boundshade(fz_shade *shade, fz_matrix ctm) int i, ncomp, nvert; ctm = fz_concat(shade->matrix, ctm); - ncomp = shade->usefunction ? 3 : 2 + shade->cs->n; + ncomp = shade->usefunction ? 3 : 2 + shade->colorspace->n; nvert = shade->meshlen / ncomp; v = shade->mesh; @@ -82,7 +82,7 @@ fz_debugshade(fz_shade *shade) shade->bbox.x0, shade->bbox.y0, shade->bbox.x1, shade->bbox.y1); - printf("\tcolorspace %s\n", shade->cs->name); + printf("\tcolorspace %s\n", shade->colorspace->name); printf("\tmatrix [%g %g %g %g %g %g]\n", shade->matrix.a, shade->matrix.b, shade->matrix.c, @@ -91,7 +91,7 @@ fz_debugshade(fz_shade *shade) if (shade->usebackground) { printf("\tbackground ["); - for (i = 0; i < shade->cs->n; i++) + for (i = 0; i < shade->colorspace->n; i++) printf("%s%g", i == 0 ? "" : " ", shade->background[i]); printf("]\n"); } @@ -102,7 +102,7 @@ fz_debugshade(fz_shade *shade) n = 3; } else - n = 2 + shade->cs->n; + n = 2 + shade->colorspace->n; printf("\tvertices: %d\n", shade->meshlen); |