diff options
author | Robin Watts <Robin.Watts@artifex.com> | 2011-07-13 20:31:56 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2011-07-13 21:03:28 +0100 |
commit | 6913145eefde0e5c4cde9573d8d2cb2a35fd605d (patch) | |
tree | f79dc7269f4f562bdb168b572a37367e806e0190 /fitz/dev_trace.c | |
parent | 2c4bbbfdc7413a68cad395c3c61ff8e62dceb18b (diff) | |
download | mupdf-6913145eefde0e5c4cde9573d8d2cb2a35fd605d.tar.xz |
Non-isolated group support, and fix Bug 692336.
Firstly, this takes on some of Zenikos patch to correct the clip
stack handling that was broken by the fix to bug 692287 (in commit
2c3bbbf). This bug should now be solved.
We add a new 'shape' field to the draw device structure (and clip
stack). When we are inside non-isolated groups, this is set to be
a pixmap where we accumulate the 'shape' of the objects drawn.
When we come to blend back, if we are blending a non-isolated group
back, we have to use a different blending function that takes account
of the shape.
Various internal groups (the page group, and groups used to force
blending) are set to be isolated to avoid carrying shape planes
around when this is not required.
All our rendering code now has to know how to maintain the shape
plane as well as doing the basic rendering.
Diffstat (limited to 'fitz/dev_trace.c')
-rw-r--r-- | fitz/dev_trace.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fitz/dev_trace.c b/fitz/dev_trace.c index 06f749f9..03e05f91 100644 --- a/fitz/dev_trace.c +++ b/fitz/dev_trace.c @@ -113,7 +113,8 @@ fz_trace_clip_path(void *user, fz_path *path, fz_rect *rect, int even_odd, fz_ma else printf("winding=\"nonzero\" "); fz_trace_matrix(ctm); - printf(">\n"); + printf("contentbbox=\"%g %g %g %g\">\n", + rect->x0, rect->y0, rect->x1, rect->y1); fz_trace_path(path, 0); printf("</clip_path>\n"); } |