summaryrefslogtreecommitdiff
path: root/draw/draw_device.c
diff options
context:
space:
mode:
authorRobin Watts <Robin.Watts@artifex.com>2011-09-02 14:44:46 +0100
committerTor Andersson <tor.andersson@artifex.com>2011-09-03 16:11:38 +0200
commit833b179e9f8da52a7a207884bfb2e42e22c74ef8 (patch)
treeccc382940317ce675d68d84353b7d1ce5d1e37f6 /draw/draw_device.c
parent352af833c1c261dc6fb539509fb4b1e27918fa34 (diff)
downloadmupdf-833b179e9f8da52a7a207884bfb2e42e22c74ef8.tar.xz
Introduce ATTEMPT_KNOCKOUT_AND_ISOLATED define (off by default).
Until such time as the knockout and isolated group support is known to work properly, leave it disabled so we behave the same as we have until now.
Diffstat (limited to 'draw/draw_device.c')
-rw-r--r--draw/draw_device.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/draw/draw_device.c b/draw/draw_device.c
index f8e802cd..76b55276 100644
--- a/draw/draw_device.c
+++ b/draw/draw_device.c
@@ -6,6 +6,11 @@
#define STACK_SIZE 96
+/* Enable the following to attempt to support knockout and/or isolated
+ * blending groups. This code is known to give incorrect results currently
+ * so disabled by default. See bug 692377. */
+#undef ATTEMPT_KNOCKOUT_AND_ISOLATED
+
/* Enable the following to help debug group blending. */
#undef DUMP_GROUP_BLENDS
@@ -1306,6 +1311,11 @@ fz_draw_begin_group(void *user, fz_rect rect, int isolated, int knockout, int bl
bbox = fz_intersect_bbox(bbox, dev->scissor);
dest = fz_new_pixmap_with_rect(model, bbox);
+#ifndef ATTEMPT_KNOCKOUT_AND_ISOLATED
+ knockout = 0;
+ isolated = 1;
+#endif
+
if (isolated)
{
fz_clear_pixmap(dest);