summaryrefslogtreecommitdiff
path: root/print/ghostscript8/files/patch-base-gdevl256.c
diff options
context:
space:
mode:
authorHiroki Sato <hrs@FreeBSD.org>2010-08-02 06:15:08 +0000
committerHiroki Sato <hrs@FreeBSD.org>2010-08-02 06:15:08 +0000
commit44bc3e23220d42767cd9d28679a12da3aeb7bb04 (patch)
treeae6229353724de60300bc3fba7aa27d7d9fe5ef6 /print/ghostscript8/files/patch-base-gdevl256.c
parentUpgrade to 0.15. (diff)
- Fix compile errors when vgalib and lvga256 drivers are enabled.
- Use external libraries instead of bundled old ones[1]. - Fix WITHOUT_FOO handling[2]. Submitted by: mi[1], dinoex[2] PR: ports/126513 PR: ports/148960
Notes
Notes: svn path=/head/; revision=258619
Diffstat (limited to 'print/ghostscript8/files/patch-base-gdevl256.c')
-rw-r--r--print/ghostscript8/files/patch-base-gdevl256.c17
1 files changed, 15 insertions, 2 deletions
diff --git a/print/ghostscript8/files/patch-base-gdevl256.c b/print/ghostscript8/files/patch-base-gdevl256.c
index 26201906c1d4..60be4a072b51 100644
--- a/print/ghostscript8/files/patch-base-gdevl256.c
+++ b/print/ghostscript8/files/patch-base-gdevl256.c
@@ -1,5 +1,5 @@
---- base/gdevl256.c.orig Mon Jun 4 00:54:57 2007
-+++ base/gdevl256.c Mon Jun 4 01:13:56 2007
+--- base/gdevl256.c.orig 2007-09-25 22:31:24.000000000 +0900
++++ base/gdevl256.c 2010-08-01 23:05:56.000000000 +0900
@@ -143,9 +143,12 @@
/* for compatibility with the older display modes: */
/* these are indexed as 0.0.R0.G0.B0.R1.G1.B1. */
@@ -15,3 +15,16 @@
#define cv_bits(v,n) (v >> (gx_color_value_bits - n))
ushort r5 = cv_bits(r, 5), g5 = cv_bits(g, 5), b5 = cv_bits(b, 5);
static const byte cube_bits[32] =
+@@ -301,12 +304,3 @@
+ gl_line(x0, y0, x1, y1, color);
+ 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_lvga256_device);
+-}
+-#endif