summaryrefslogtreecommitdiff
path: root/print/ghostscript8/files/patch-src:gdevccr.c
blob: 56bb760b8ac8ebd0a6b1c7d759def17a183b9fb5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- src/gdevccr.c.orig	Fri Feb 22 07:24:51 2002
+++ src/gdevccr.c	Sun Nov 10 22:38:51 2002
@@ -112,8 +112,11 @@
 /* ------ Color mapping routines ------ */
 /* map an rgb color to a ccr cmy bitmap */
 private gx_color_index
-ccr_map_rgb_color(gx_device *pdev, ushort r, ushort g, ushort b)
+ccr_map_rgb_color(gx_device *pdev, const ushort cv[])
 {
+  ushort r = cv[0];
+  ushort g = cv[1];
+  ushort b = cv[2];
   register int shift = gx_color_value_bits - 1;
   r>>=shift;
   g>>=shift;