summaryrefslogtreecommitdiff
path: root/print/ghostscript8-x11/files/patch-base_gdevvglb.c
blob: a4348edbb9e1065ba1f612974b8ec26c1bef70e3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
--- base/gdevvglb.c.orig	2007-09-25 13:31:24 UTC
+++ base/gdevvglb.c
@@ -149,10 +149,13 @@ vgalib_close(gx_device * dev)
 }
 
 static 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);
 }
 
 static int
@@ -368,12 +371,3 @@ vgalib_put_params(gx_device * dev, gs_pa
     }
     return 0;
 }
-
-#ifdef GS_DEVS_SHARED
-extern void gs_lib_register_device(const gx_device *dev);
-void
-gs_shared_init(void)
-{
-  gs_lib_register_device(&gs_vgalib_device);
-}
-#endif