summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/mupdf/fitz/math.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mupdf/fitz/math.h b/include/mupdf/fitz/math.h
index 5e25f871..dc29e3fb 100644
--- a/include/mupdf/fitz/math.h
+++ b/include/mupdf/fitz/math.h
@@ -26,7 +26,7 @@ static inline int fz_mul255(int a, int b)
/* 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) (FZ_COMBINE((A), (B)) + FZ_COMBINE((C), (D)))
+#define FZ_COMBINE2(A,B,C,D) (((A) * (B) + (C) * (D))>>8)
/* Blend SRC and DST (in the same range) together according to
* AMOUNT (in the 0...256 range). */