summaryrefslogtreecommitdiff
path: root/source/fitz/device.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2017-08-01 17:10:02 +0200
committerTor Andersson <tor.andersson@artifex.com>2017-08-09 14:02:19 +0200
commit09d3d93b4e3d8951bf958f2404ee27b5a0769cb9 (patch)
tree668941dbbcb6b9e5a1525aa9f4a08b08a16cea39 /source/fitz/device.c
parent72e05eaace2fdb3b118b57f6d331054127c46fc5 (diff)
downloadmupdf-09d3d93b4e3d8951bf958f2404ee27b5a0769cb9.tar.xz
Render shadings to images in stext-device.
Diffstat (limited to 'source/fitz/device.c')
-rw-r--r--source/fitz/device.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/fitz/device.c b/source/fitz/device.c
index 0f658d31..5d2b7d7e 100644
--- a/source/fitz/device.c
+++ b/source/fitz/device.c
@@ -520,3 +520,11 @@ fz_set_default_colorspaces(fz_context *ctx, fz_device *dev, fz_default_colorspac
if (dev->set_default_colorspaces)
dev->set_default_colorspaces(ctx, dev, default_cs);
}
+
+const fz_rect *
+fz_device_current_scissor(fz_context *ctx, fz_device *dev)
+{
+ if (dev->container_len > 0)
+ return &dev->container[dev->container_len-1].scissor;
+ return &fz_infinite_rect;
+}