summaryrefslogtreecommitdiff
path: root/draw/draw_mesh.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2013-05-16 22:29:27 +0200
committerRobin Watts <robin.watts@artifex.com>2013-05-16 23:47:14 +0100
commit93bd1ff05bf315ed11b305d32eb510bd9a9a7e92 (patch)
tree10c2d846ed1193624a5119853bbc2ef9651e197c /draw/draw_mesh.c
parent558ad511446cfa1d70891d9e7c9fb1ba942d3d9a (diff)
downloadmupdf-93bd1ff05bf315ed11b305d32eb510bd9a9a7e92.tar.xz
Add colorspace context.
To prepare for color management, we have to make the device colorspaces per-context and able to be overridden by users.
Diffstat (limited to 'draw/draw_mesh.c')
-rw-r--r--draw/draw_mesh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/draw/draw_mesh.c b/draw/draw_mesh.c
index 100a1686..8be48e02 100644
--- a/draw/draw_mesh.c
+++ b/draw/draw_mesh.c
@@ -230,7 +230,7 @@ fz_paint_shade(fz_context *ctx, fz_shade *shade, const fz_matrix *ctm, fz_pixmap
clut[i][k] = shade->function[i][shade->colorspace->n] * 255;
}
conv = fz_new_pixmap_with_bbox(ctx, dest->colorspace, bbox);
- temp = fz_new_pixmap_with_bbox(ctx, fz_device_gray, bbox);
+ temp = fz_new_pixmap_with_bbox(ctx, fz_device_gray(ctx), bbox);
fz_clear_pixmap(ctx, temp);
}
else