diff options
author | Robin Watts <robin.watts@artifex.com> | 2013-10-11 14:27:53 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2013-10-11 14:28:45 +0100 |
commit | 79faa2b83d2295a53645e1f5330edfc33be61305 (patch) | |
tree | b500cb9d0c317f05038d758790139b56cf4473fc | |
parent | f9dd37a534b2481a9df298bbc75c63f744ddd5df (diff) | |
download | mupdf-79faa2b83d2295a53645e1f5330edfc33be61305.tar.xz |
SVG: Add dumb group implementation.
Really just a structure indicator as SVG 1.1 doesn't support
blending etc.
-rw-r--r-- | source/fitz/svg-device.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/fitz/svg-device.c b/source/fitz/svg-device.c index 6f3923ca..77eeb072 100644 --- a/source/fitz/svg-device.c +++ b/source/fitz/svg-device.c @@ -858,13 +858,20 @@ svg_dev_end_mask(fz_device *dev) static void svg_dev_begin_group(fz_device *dev, const fz_rect *bbox, int isolated, int knockout, int blendmode, float alpha) { + svg_device *sdev = (svg_device *)dev->user; + fz_output *out = sdev->out; + /* SVG 1.1 doesn't support adequate blendmodes/knockout etc, so just ignore it for now */ + fz_printf(out, "<g>\n"); } static void svg_dev_end_group(fz_device *dev) { + svg_device *sdev = (svg_device *)dev->user; + fz_output *out = sdev->out; + fz_printf(out, "</g>\n"); } static int |