mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-20 04:02:27 +00:00
16 lines
488 B
C
16 lines
488 B
C
|
--- 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;
|