summaryrefslogtreecommitdiff
path: root/doc/example.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 /doc/example.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 'doc/example.c')
-rw-r--r--doc/example.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/example.c b/doc/example.c
index d60c7cd6..45cca2ff 100644
--- a/doc/example.c
+++ b/doc/example.c
@@ -54,7 +54,7 @@ render(char *filename, int pagenumber, int zoom, int rotation)
fz_irect bbox;
fz_round_rect(&bbox, &bounds);
- fz_pixmap *pix = fz_new_pixmap_with_bbox(ctx, fz_device_rgb, &bbox);
+ fz_pixmap *pix = fz_new_pixmap_with_bbox(ctx, fz_device_rgb(ctx), &bbox);
fz_clear_pixmap_with_value(ctx, pix, 0xff);
// A page consists of a series of objects (text, line art, images,