[gs-cvs] rev 8210 - trunk/gs/src
ray at ghostscript.com
ray at ghostscript.com
Mon Aug 27 23:34:08 PDT 2007
Author: ray
Date: 2007-08-27 23:34:08 -0700 (Mon, 27 Aug 2007)
New Revision: 8210
Modified:
trunk/gs/src/gxcmap.c
Log:
Correct obvious typo in default rgb to cmyk color mapping. It makes
no sense to use the 'g' component to calculate the 'k' for black
generation and undercolorremoval.
Modified: trunk/gs/src/gxcmap.c
===================================================================
--- trunk/gs/src/gxcmap.c 2007-08-27 20:44:27 UTC (rev 8209)
+++ trunk/gs/src/gxcmap.c 2007-08-28 06:34:08 UTC (rev 8210)
@@ -295,7 +295,7 @@
color_rgb_to_cmyk(r, g, b, pis, out);
else {
frac c = frac_1 - r, m = frac_1 - g, y = frac_1 - b;
- frac k = min(c, min(m, g));
+ frac k = min(c, min(m, y));
out[0] = c - k;
out[1] = m - k;
More information about the gs-cvs
mailing list