freebsd-ports/print/ghostscript-gpl/files/patch-src:gdevcp50.c
Ying-Chieh Liao 22ce79a5ec upgrade to 8.00
PR:		46435
Submitted by:	Ports Fury
2003-01-03 19:37:31 +00:00

18 lines
631 B
C

--- src/gdevcp50.c.orig Fri Feb 22 07:24:51 2002
+++ src/gdevcp50.c Sun Nov 10 22:35:13 2002
@@ -204,9 +204,12 @@
/* Map a r-g-b color to a color index. */
private gx_color_index
-cp50_rgb_color(gx_device *dev, gx_color_value r, gx_color_value g,
- gx_color_value b)
-{ return ((ulong)gx_color_value_to_byte(r) << 16)+
+cp50_rgb_color(gx_device *dev, const gx_color_value cv[])
+{
+ gx_color_value r = cv[0];
+ gx_color_value g = cv[1];
+ gx_color_value b = cv[2];
+ return ((ulong)gx_color_value_to_byte(r) << 16)+
((uint)gx_color_value_to_byte(g) << 8) +
gx_color_value_to_byte(b);
}