diff options
author | Hiroki Sato <hrs@FreeBSD.org> | 2007-06-03 16:39:47 +0000 |
---|---|---|
committer | Hiroki Sato <hrs@FreeBSD.org> | 2007-06-03 16:39:47 +0000 |
commit | 4b8c103d72d84e9a02aae4ea0b166a8d97913bf0 (patch) | |
tree | a4a8529f995c5a6cecf7709dc58b84627319a72c /print/ghostscript-gpl/files/patch-src-gdevvglb.c | |
parent | Unreak compilation with gcc-4.2: There is one expression containing a (diff) |
Fix build when lvga256 or vgalib is enabled.
Spotted by: itetcu
Notes
Notes:
svn path=/head/; revision=192632
Diffstat (limited to 'print/ghostscript-gpl/files/patch-src-gdevvglb.c')
-rw-r--r-- | print/ghostscript-gpl/files/patch-src-gdevvglb.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/print/ghostscript-gpl/files/patch-src-gdevvglb.c b/print/ghostscript-gpl/files/patch-src-gdevvglb.c new file mode 100644 index 000000000000..81abb24feb8a --- /dev/null +++ b/print/ghostscript-gpl/files/patch-src-gdevvglb.c @@ -0,0 +1,19 @@ +--- src/gdevvglb.c.orig Mon Jun 4 01:15:47 2007 ++++ src/gdevvglb.c Mon Jun 4 01:18:45 2007 +@@ -149,10 +149,13 @@ + } + + private gx_color_index +-vgalib_map_rgb_color(gx_device * dev, gx_color_value red, +- gx_color_value green, gx_color_value blue) ++vgalib_map_rgb_color(gx_device * dev, const gx_color_value cv[]) + { +- return pc_4bit_map_rgb_color(dev, red, green, blue); ++ gx_color_value r = cv[0]; ++ gx_color_value g = cv[1]; ++ gx_color_value b = cv[2]; ++ ++ return pc_4bit_map_rgb_color(dev, cv); + } + + private int |