summaryrefslogtreecommitdiff
path: root/print/ghostscript-gpl/files/patch-lxm3200:gdevlx32.c
diff options
context:
space:
mode:
authorRong-En Fan <rafan@FreeBSD.org>2007-03-27 19:59:21 +0000
committerRong-En Fan <rafan@FreeBSD.org>2007-03-27 19:59:21 +0000
commit20352fa29823ad73e4f06d086dc9598d1a274ab8 (patch)
tree8dca0c9c79381ab1af57f988e6007e2e7b2e40fa /print/ghostscript-gpl/files/patch-lxm3200:gdevlx32.c
parentClean up CXXFLAGS. Fix compilation with gcc-4.1.x. (diff)
- Update to 8.56
- Switch to GTK 2.x - SWitch to ship-in jasper which contains some fixes for gs PR: ports/110818 Submitted by: KATO Tsuguru <tkato432 at yahoo.com>
Notes
Notes: svn path=/head/; revision=188581
Diffstat (limited to 'print/ghostscript-gpl/files/patch-lxm3200:gdevlx32.c')
-rw-r--r--print/ghostscript-gpl/files/patch-lxm3200:gdevlx32.c32
1 files changed, 31 insertions, 1 deletions
diff --git a/print/ghostscript-gpl/files/patch-lxm3200:gdevlx32.c b/print/ghostscript-gpl/files/patch-lxm3200:gdevlx32.c
index fef3a6452e40..e4b45a4bece2 100644
--- a/print/ghostscript-gpl/files/patch-lxm3200:gdevlx32.c
+++ b/print/ghostscript-gpl/files/patch-lxm3200:gdevlx32.c
@@ -1,5 +1,5 @@
--- lxm3200/gdevlx32.c.orig Wed Apr 23 01:06:20 2003
-+++ lxm3200/gdevlx32.c Thu May 15 08:24:08 2003
++++ lxm3200/gdevlx32.c Thu May 26 00:11:50 2005
@@ -422,9 +422,11 @@
* of the nearest color.
*/
@@ -23,3 +23,33 @@
break;
}
+@@ -732,10 +734,10 @@
+ /* Allocate memory for the buffers and
+ * verify that the allocation was done properly.
+ */
+- gendata.scanbuf = (byte *)gs_malloc(gendata.numbytes, gendata.numblines,
++ gendata.scanbuf = (byte *)gs_malloc(pdev->memory, gendata.numbytes, gendata.numblines,
+ "lxm3200_print_page(scanbuf)");
+
+- gendata.outdata = (byte *)gs_malloc(gendata.numbytes, 30,
++ gendata.outdata = (byte *)gs_malloc(pdev->memory, gendata.numbytes, 30,
+ "lxm3200_print_page(outdata)");
+
+ if(gendata.scanbuf == NULL ||
+@@ -943,12 +945,14 @@
+ private void
+ freeresources(void)
+ {
++ gx_device *pdev;
++
+ if(gendata.scanbuf)
+- gs_free((char *)gendata.scanbuf, gendata.numbytes, gendata.numblines,
++ gs_free(pdev->memory, (char *)gendata.scanbuf, gendata.numbytes, gendata.numblines,
+ "lxm3200:freeresources(scanbuf)");
+
+ if(gendata.outdata)
+- gs_free((char *)gendata.outdata, gendata.numbytes, 30,
++ gs_free(pdev->memory, (char *)gendata.outdata, gendata.numbytes, 30,
+ "lxm3200:freeresources(outdata)");
+ }
+