[gs-cvs] rev 8136 - trunk/gs/src
leonardo at ghostscript.com
leonardo at ghostscript.com
Tue Jul 24 13:02:21 PDT 2007
Author: leonardo
Date: 2007-07-24 13:02:20 -0700 (Tue, 24 Jul 2007)
New Revision: 8136
Modified:
trunk/gs/src/gxshade6.c
Log:
Fix (shadings) : Decomposition limit could be too small.
DETAILS :
Bug 689225 "Regression: major differences in 470-01.ps in block 470-03".
This patch improves the tolerance of the shading code to
a wrong device resolution, which can apparently happen
when installing a clipper device. Thus is closes a symptom,
but the bottom of the problem is left unfixed.
We do so due to incoming scheduled release.
We opened a separate bug 689365 about a wronmg HWResolution of clipper device.
EXPECTED DIFFERENCES :
Should fix the recent regression with 470-01.ps .
Modified: trunk/gs/src/gxshade6.c
===================================================================
--- trunk/gs/src/gxshade6.c 2007-07-24 19:11:42 UTC (rev 8135)
+++ trunk/gs/src/gxshade6.c 2007-07-24 20:02:20 UTC (rev 8136)
@@ -245,6 +245,7 @@
pfs->n_color_args = 1;
pfs->decomposition_limit = float2fixed(min(pfs->dev->HWResolution[0],
pfs->dev->HWResolution[1]) / 72);
+ pfs->decomposition_limit = max(pfs->decomposition_limit, fixed_1);
pfs->fixed_flat = float2fixed(pfs->pis->flatness);
/* Restrict the pfs->smoothness with 1/min_linear_grades, because cs_is_linear
can't provide a better precision due to the color
More information about the gs-cvs
mailing list