summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2018-11-09 14:44:13 +0100
committerTor Andersson <tor.andersson@artifex.com>2018-11-09 14:44:13 +0100
commitb52c5fd8b395403cab65abc9a44b15d710725757 (patch)
tree9914d25bb81230fe9e088d624595864b44f77457 /source
parent371403d1ce7738b3d41021464bb1e8bd9ccc0380 (diff)
downloadmupdf-b52c5fd8b395403cab65abc9a44b15d710725757.tar.xz
Fix 695390: Increase number of samples in Type 1 function shadings.
15 years have passed since we first set the sampling to a 32x32 mesh. Quadrupling it to 64x64 sounds about right to me.
Diffstat (limited to 'source')
-rw-r--r--source/pdf/pdf-shade.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source/pdf/pdf-shade.c b/source/pdf/pdf-shade.c
index 970a2ed1..092c30e2 100644
--- a/source/pdf/pdf-shade.c
+++ b/source/pdf/pdf-shade.c
@@ -1,9 +1,6 @@
#include "mupdf/fitz.h"
#include "mupdf/pdf.h"
-/* FIXME: Remove this somehow */
-#define FUNSEGS 32 /* size of sampled mesh for function-based shadings */
-
/* Sample various functions into lookup tables */
static void
@@ -48,6 +45,8 @@ pdf_sample_shade_function(fz_context *ctx, fz_shade *shade, int funcs, pdf_funct
/* Type 1-3 -- Function-based, linear and radial shadings */
+#define FUNSEGS 64 /* size of sampled mesh for function-based shadings */
+
static void
pdf_load_function_based_shading(fz_context *ctx, pdf_document *doc, fz_shade *shade, pdf_obj *dict, pdf_function *func)
{