Fix for 687349 A wrong comment for gx_device_color_s

"Dan Coby" <[email protected]>
Newsgroups gmane.comp.printing.ghostscript.patches
Message-ID <[email protected]>
Log message:

Fix for 687349 A wrong comment for gx_device_color_s.  This change
modifies the comment on ccolor and the related variable ccolor_valid.


Index: src/gsdcolor.h
===================================================================
RCS file: /cvs/ghostscript/gs/src/gsdcolor.h,v
retrieving revision 1.12
diff -u -r1.12 gsdcolor.h
--- a/src/gsdcolor.h    26 Aug 2003 12:37:13 -0000      1.12
+++ b/src/gsdcolor.h    10 Mar 2004 06:50:39 -0000
@@ -306,9 +306,21 @@
        } /*(colored) */ pattern;
     } colors;
     gs_int_point phase;
+    /*
+     * This flag indicates if the paint values in ccolor are valid.  They
+     * are valid for most cases.  However there are some special cases
+     * in which a device color is initialized to specific values (usually
+     * black or white) instead of being created from a color space and
+     * color values.
+     */
     bool ccolor_valid;
-    gs_client_color ccolor;    /* needed for remapping patterns, */
-                               /* not set for non-pattern colors */
+    /*
+     * For non-pattern colors, ccolors contains the original paint values.
+     * For pattern colors, ccolors contains information required for
remapping.
+     * the pattern.  See ccolor_valid.
+     */
+    gs_client_color ccolor;
+
     struct _mask {
        struct mp_ {
            short x, y;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.