[gs-cvs] gs/src

Ray Johnston ray at ghostscript.com
Thu Jul 14 22:59:20 PDT 2005


Update of /cvs/ghostscript/gs/src
In directory casper2:/tmp/cvs-serv27230/src

Modified Files:
	gxdevcli.h 
Log Message:
Remove the arbitrary limit of 256 max_colors from the dci_ macros. This is
related to bug 688204 and allows shadings (gradients) to have more than
256 steps for high precision color devices.

DETAILS:

Note that the default smoothness is set to 0.02 in lib/gs_ll3.ps and unless
this is set smaller with the setsmoothness operator (or the PDF 'SM' op),
the max_error used in src/gxshade.c may still be too large to see REALLY
smooth gradients. The next part of the changes is to modify the setting
of max_error when the device has > 256 levels.


Index: gxdevcli.h
===================================================================
RCS file: /cvs/ghostscript/gs/src/gxdevcli.h,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -d -r1.38 -r1.39
--- gxdevcli.h	20 Jun 2005 08:59:23 -0000	1.38
+++ gxdevcli.h	15 Jul 2005 05:59:18 -0000	1.39
@@ -569,16 +569,12 @@
 #define dci_std_color_max_gray(nc, color_bits)            \
     ( (nc) == 3                                           \
         ? 0                                               \
-        : ( dci_std_gray_bits(nc, color_bits) >= 8        \
-            ? 255                                         \
-            : (1 << dci_std_gray_bits(nc, color_bits)) - 1 ) )
+        : (1 << dci_std_gray_bits(nc, color_bits)) - 1 ) 
 
 #define dci_std_color_max_color(nc, color_bits)               \
     ( (nc) == 1                                               \
         ? 0                                                   \
-        : ( dci_std_color_bits(nc, color_bits) >= 8           \
-            ? 255                                             \
-            : (1 << dci_std_color_bits(nc, color_bits)) - 1 ) )
+        : (1 << dci_std_color_bits(nc, color_bits)) - 1 )
 
 
 /*



More information about the gs-cvs mailing list