diff options
author | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2003-01-03 19:37:31 +0000 |
---|---|---|
committer | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2003-01-03 19:37:31 +0000 |
commit | 22ce79a5ec50177752f5d80bfa7f24bad1c31960 (patch) | |
tree | f090134a7b14398b671320983acffcd554e94f3f /print/ghostscript-gpl/files/patch-src:gdevmgr.c | |
parent | upgrade to 1.0.1 (diff) |
upgrade to 8.00
PR: 46435
Submitted by: Ports Fury
Notes
Notes:
svn path=/head/; revision=72450
Diffstat (limited to 'print/ghostscript-gpl/files/patch-src:gdevmgr.c')
-rw-r--r-- | print/ghostscript-gpl/files/patch-src:gdevmgr.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/print/ghostscript-gpl/files/patch-src:gdevmgr.c b/print/ghostscript-gpl/files/patch-src:gdevmgr.c new file mode 100644 index 000000000000..8f2dc4028c34 --- /dev/null +++ b/print/ghostscript-gpl/files/patch-src:gdevmgr.c @@ -0,0 +1,17 @@ +--- src/gdevmgr.c.orig Sun Jun 16 14:48:55 2002 ++++ src/gdevmgr.c Sun Nov 10 22:52:19 2002 +@@ -364,9 +364,11 @@ + /* (1/6, 1/2, and 5/6), instead of the obvious 8x8x4. */ + + gx_color_index +-mgr_8bit_map_rgb_color(gx_device *dev, gx_color_value r, gx_color_value g, +- gx_color_value b) +-{ uint rv = r / (gx_max_color_value / 7 + 1); ++mgr_8bit_map_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]; ++ uint rv = r / (gx_max_color_value / 7 + 1); + uint gv = g / (gx_max_color_value / 7 + 1); + uint bv = b / (gx_max_color_value / 7 + 1); + return (gx_color_index) |