summaryrefslogtreecommitdiff
path: root/fitz/res_colorspace.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2012-02-03 15:29:20 +0100
committerTor Andersson <tor.andersson@artifex.com>2012-02-03 15:29:20 +0100
commit1eb721680865658ed8ff04e13c81eb6a32b2b44c (patch)
tree2551cb051c80ce7731318c753ff92854e2571cf5 /fitz/res_colorspace.c
parent27cc2be0735b9ff115a9565b905f3b46f26e9ec8 (diff)
downloadmupdf-1eb721680865658ed8ff04e13c81eb6a32b2b44c.tar.xz
Pass context explicitly to hash table functions.
Diffstat (limited to 'fitz/res_colorspace.c')
-rw-r--r--fitz/res_colorspace.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fitz/res_colorspace.c b/fitz/res_colorspace.c
index 1fdc8c4a..413da3ae 100644
--- a/fitz/res_colorspace.c
+++ b/fitz/res_colorspace.c
@@ -471,7 +471,7 @@ fz_std_conv_pixmap(fz_context *ctx, fz_pixmap *src, fz_pixmap *dst)
{
for (x = 0; x < src->w; x++)
{
- color = fz_hash_find(lookup, s);
+ color = fz_hash_find(ctx, lookup, s);
if (color)
{
memcpy(d, color, dstn);
@@ -487,14 +487,14 @@ fz_std_conv_pixmap(fz_context *ctx, fz_pixmap *src, fz_pixmap *dst)
for (k = 0; k < dstn; k++)
*d++ = dstv[k] * 255;
- fz_hash_insert(lookup, s - srcn, d - dstn);
+ fz_hash_insert(ctx, lookup, s - srcn, d - dstn);
*d++ = *s++;
}
}
}
- fz_free_hash(lookup);
+ fz_free_hash(ctx, lookup);
}
}