summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2016-11-07 12:46:31 +0000
committerRobin Watts <robin.watts@artifex.com>2016-11-07 13:41:09 +0000
commit657a90eb30ea6f5f986fd4d886c0e709f20f2062 (patch)
treeb46b666816b69ef1d7726c08e97dfceefc07df2f /include
parent7456ccc6c3ec48490dffebaf26f85f9f5529fbe0 (diff)
downloadmupdf-657a90eb30ea6f5f986fd4d886c0e709f20f2062.tar.xz
Bug 697241: Fix blending through clips.
Non rectangular clips are currently handled by rendering to a 'isolated' background, and then plotting that through a mask. This runs into problems when the rendering needs to use non standard blend modes that need to access the background colors. Instead, copy the background to the new pixmap, render to that then plot that through the mask. This simplifies the painting code, because we now never have mismatched source and destination alphas.
Diffstat (limited to 'include')
-rw-r--r--include/mupdf/fitz/math.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/include/mupdf/fitz/math.h b/include/mupdf/fitz/math.h
index dc29e3fb..b8954505 100644
--- a/include/mupdf/fitz/math.h
+++ b/include/mupdf/fitz/math.h
@@ -19,11 +19,6 @@ static inline int fz_mul255(int a, int b)
* to give a single value in the same range as A was. */
#define FZ_COMBINE(A,B) (((A)*(B))>>8)
-/* Combine values A (in the 0..255 range) and B (in the 0..256 range),
- * then reverse it within that range to give a single value in the
- * 0..256 range. */
-#define FZ_REVERSE_COMBINE(A,B) ((0xFF00 - (A)*(B))>>8)
-
/* Combine values A and C (in the same (any) range) and B and D (in the
* 0..256 range), to give a single value in the same range as A and C were. */
#define FZ_COMBINE2(A,B,C,D) (((A) * (B) + (C) * (D))>>8)