diff options
author | Robin Watts <robin.watts@artifex.com> | 2017-08-04 14:52:11 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2017-10-24 15:16:35 +0100 |
commit | 38620dea1512581a65350955cebb1028063ce42b (patch) | |
tree | 46172be5f2be7af54c974e04932e2bdd06c724bf /source/fitz/draw-imp.h | |
parent | 556a18a855b3641185c982cc31740b5462b3f970 (diff) | |
download | mupdf-38620dea1512581a65350955cebb1028063ce42b.tar.xz |
Avoid using overprinting routines unnecessarily.
Diffstat (limited to 'source/fitz/draw-imp.h')
-rw-r--r-- | source/fitz/draw-imp.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/source/fitz/draw-imp.h b/source/fitz/draw-imp.h index 47a429d1..c14947c8 100644 --- a/source/fitz/draw-imp.h +++ b/source/fitz/draw-imp.h @@ -126,6 +126,20 @@ static int inline fz_overprint_component(const fz_overprint *op, int i) return ((op->mask[i>>5]>>(i & 31)) & 1) == 0; } +static int inline fz_overprint_required(const fz_overprint *op) +{ + int i; + + if (op == NULL) + return 0; + + for (i = 0; i < (FZ_MAX_COLORS+31)/32; i++) + if (op->mask[i] != 0) + return 1; + + return 0; +} + /* * Scan converter */ |