summaryrefslogtreecommitdiff
path: root/fitz/dev_null.c
diff options
context:
space:
mode:
authorRobin Watts <Robin.Watts@artifex.com>2011-07-29 19:11:53 +0100
committerRobin Watts <Robin.Watts@artifex.com>2011-08-01 14:11:53 +0100
commit5a46065a0df691a79b75f5e61e34e344afd5349a (patch)
tree3a4f175c73fbb945a4df3d1abcd822a5571641b5 /fitz/dev_null.c
parent684cd3ebbbeaffbf416a09aad6af2cb160cec6bb (diff)
downloadmupdf-5a46065a0df691a79b75f5e61e34e344afd5349a.tar.xz
Add support for colored Type3 glyphs (ones that use d0).
Detect the d0 or d1 operators by writing a bit to the new device flags word. This can then be checked by the Type3 code to create the appropriate backing pixmap. In order to know what the appropriate backing pixmap is, we pass an additional colorspace into the glyph rendering code.
Diffstat (limited to 'fitz/dev_null.c')
-rw-r--r--fitz/dev_null.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fitz/dev_null.c b/fitz/dev_null.c
index 4d40ef73..508be7e0 100644
--- a/fitz/dev_null.c
+++ b/fitz/dev_null.c
@@ -6,6 +6,7 @@ fz_new_device(void *user)
fz_device *dev = fz_malloc(sizeof(fz_device));
memset(dev, 0, sizeof(fz_device));
dev->hints = 0;
+ dev->flags = 0;
dev->user = user;
return dev;
}