From b52c5fd8b395403cab65abc9a44b15d710725757 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 9 Nov 2018 14:44:13 +0100 Subject: 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. --- source/pdf/pdf-shade.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'source/pdf') 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) { -- cgit v1.2.3