summaryrefslogtreecommitdiff
path: root/source/fitz
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2018-10-23 14:05:19 +0200
committerTor Andersson <tor.andersson@artifex.com>2018-10-26 15:28:25 +0200
commit4f8796cafcd5c15247fb85e7febd1bb591d0a853 (patch)
treee38debcdfacdadccd6e293494eed26f80e85957c /source/fitz
parent83729e7aabac6178a895365f8bc3e20f3af6a251 (diff)
downloadmupdf-4f8796cafcd5c15247fb85e7febd1bb591d0a853.tar.xz
Use 14 bits of precision for image drawing, to allow for larger images.
Now the image size limit is 131072 x 131072 instead of 32768 x 32768.
Diffstat (limited to 'source/fitz')
-rw-r--r--source/fitz/draw-affine.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/fitz/draw-affine.c b/source/fitz/draw-affine.c
index 58a48442..04f02f83 100644
--- a/source/fitz/draw-affine.c
+++ b/source/fitz/draw-affine.c
@@ -6,7 +6,7 @@
#include <assert.h>
/* Number of fraction bits for fixed point math */
-#define PREC 16
+#define PREC 14
#define MASK ((1<<PREC)-1)
#define ONE (1<<PREC)
#define HALF (1<<(PREC-1))