3
@@ -1182,16 +1182,17 @@
6
case CUPS_CSPACE_RGBW :
7
- if (cups->header.cupsColorSpace == CUPS_CSPACE_RGBW) {
20
+ if (cups->header.cupsColorSpace == CUPS_CSPACE_RGBW)
31
@@ -1212,11 +1213,12 @@
32
out[2] = frac_1 - (frac)cups->Density[c2];
34
if (cups->header.cupsColorSpace == CUPS_CSPACE_RGBW) {
37
- else if (c3 > frac_1)
39
- out[3] = frac_1 - (frac)cups->Density[c3];
42
+ else if (c3 == frac_1)
49
@@ -2034,10 +2036,15 @@
50
* cups->DecodeLUT actually maps to RGBW, not CMYK...
53
- k = cups->DecodeLUT[c3];
54
- c = cups->DecodeLUT[c0] + k - gx_max_color_value;
55
- m = cups->DecodeLUT[c1] + k - gx_max_color_value;
56
- y = cups->DecodeLUT[c2] + k - gx_max_color_value;
62
+ c = cups->DecodeLUT[c0];
63
+ m = cups->DecodeLUT[c1];
64
+ y = cups->DecodeLUT[c2];
67
if (c > gx_max_color_value)
68
prgb[0] = gx_max_color_value;
69
@@ -2282,20 +2289,20 @@
70
switch (cups->header.cupsBitsPerColor)
88
#ifdef GX_COLOR_INDEX_TYPE
90
- i = 0xffffffffffff0000;
91
+ i = 0x0000000000000000;
93
#endif /* GX_COLOR_INDEX_TYPE */