summaryrefslogtreecommitdiff
path: root/draw
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2011-03-29 13:25:23 +0200
committerTor Andersson <tor.andersson@artifex.com>2011-03-29 13:25:23 +0200
commit11bfb3342a48130ef001af89dea7674d0990d8eb (patch)
tree5d5b0cd056c1b0f555888d3bb981b5c85d2b73c6 /draw
parent83bda0c57916650fdfce72e0ac8a9cfad1b74be9 (diff)
downloadmupdf-11bfb3342a48130ef001af89dea7674d0990d8eb.tar.xz
Don't shorten colorspace to 'cs' in structs and other names.
Diffstat (limited to 'draw')
-rw-r--r--draw/meshdraw.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/draw/meshdraw.c b/draw/meshdraw.c
index 80b80378..f40af8c3 100644
--- a/draw/meshdraw.c
+++ b/draw/meshdraw.c
@@ -498,7 +498,7 @@ fz_paintmesh(fz_shade *shade, fz_matrix ctm, fz_pixmap *dest, fz_bbox bbox)
if (shade->usefunction)
ntris = shade->meshlen / 9;
else
- ntris = shade->meshlen / ((2 + shade->cs->n) * 3);
+ ntris = shade->meshlen / ((2 + shade->colorspace->n) * 3);
while (ntris--)
{
@@ -513,10 +513,10 @@ fz_paintmesh(fz_shade *shade, fz_matrix ctm, fz_pixmap *dest, fz_bbox bbox)
tri[k][2] = *mesh++ * 255;
else
{
- fz_convertcolor(shade->cs, mesh, dest->colorspace, tri[k] + 2);
+ fz_convertcolor(shade->colorspace, mesh, dest->colorspace, tri[k] + 2);
for (i = 0; i < dest->colorspace->n; i++)
tri[k][i + 2] *= 255;
- mesh += shade->cs->n;
+ mesh += shade->colorspace->n;
}
}
fz_painttriangle(dest, tri[0], tri[1], tri[2], 2 + dest->colorspace->n, bbox);
@@ -537,7 +537,7 @@ fz_paintshade(fz_shade *shade, fz_matrix ctm, fz_pixmap *dest, fz_bbox bbox)
{
for (i = 0; i < 256; i++)
{
- fz_convertcolor(shade->cs, shade->function[i], dest->colorspace, color);
+ fz_convertcolor(shade->colorspace, shade->function[i], dest->colorspace, color);
for (k = 0; k < dest->colorspace->n; k++)
clut[i][k] = color[k] * 255;
}