summaryrefslogtreecommitdiff
path: root/print/ghostscript-gnu/files/patch-eplaser:gdevesmv.c
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2003-09-27 02:35:24 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2003-09-27 02:35:24 +0000
commit407f8a093f5323d2227dbadb047a95edeba967d5 (patch)
tree68ef8cce1ef5de0026ff458caee878f579d6c489 /print/ghostscript-gnu/files/patch-eplaser:gdevesmv.c
parent[UPDATE] Security update for ecartis, new snap-20030814 (diff)
Update port: print/ghostscript-gnu
- Update EPLASER driver to version 3.1.1 - Fix papersize handling of LIPS driver - Enable hl1240/hl1250 driver by default configuration PR: ports/57009 Submitted by: KATO Tsuguru <tkato@prontomail.com>
Notes
Notes: svn path=/head/; revision=89498
Diffstat (limited to 'print/ghostscript-gnu/files/patch-eplaser:gdevesmv.c')
-rw-r--r--print/ghostscript-gnu/files/patch-eplaser:gdevesmv.c96
1 files changed, 53 insertions, 43 deletions
diff --git a/print/ghostscript-gnu/files/patch-eplaser:gdevesmv.c b/print/ghostscript-gnu/files/patch-eplaser:gdevesmv.c
index 0d5ba3b0db97..b18c7503f5f5 100644
--- a/print/ghostscript-gnu/files/patch-eplaser:gdevesmv.c
+++ b/print/ghostscript-gnu/files/patch-eplaser:gdevesmv.c
@@ -1,5 +1,5 @@
---- eplaser/gdevesmv.c.orig Fri Dec 14 10:50:14 2001
-+++ eplaser/gdevesmv.c Sat Apr 27 13:46:31 2002
+--- eplaser/gdevesmv.c.orig Tue Aug 26 19:45:23 2003
++++ eplaser/gdevesmv.c Tue Sep 9 22:08:25 2003
@@ -34,8 +34,6 @@
*/
@@ -9,44 +9,54 @@
#include <string.h>
#include "math_.h"
-@@ -1799,13 +1798,13 @@
-
- /* Process the next piece of an image. */
- private int
--#if GS_VERSION_MAJOR == 6
-+#if GS_VERSION_MAJOR >= 6
- esmv_image_plane_data(gx_image_enum_common_t *info, const gx_image_plane_t *planes, int height, int *rows_used)
- #else
- esmv_image_plane_data(gx_device *dev, gx_image_enum_common_t *info, const gx_image_plane_t *planes, int height)
- #endif
- {
--#if GS_VERSION_MAJOR == 6
-+#if GS_VERSION_MAJOR >= 6
- gx_device *dev = info->dev;
- #endif
- gx_device_vector *const vdev = (gx_device_vector *) dev;
-@@ -1823,7 +1822,7 @@
-
- {
-
--#if GS_VERSION_MAJOR == 6
-+#if GS_VERSION_MAJOR >= 6
- if (height == 260)
- height = 1;
- #endif
-@@ -1980,13 +1979,13 @@
-
-
- private int
--#if GS_VERSION_MAJOR == 6
-+#if GS_VERSION_MAJOR >= 6
- esmv_image_end_image(gx_image_enum_common_t * info, bool draw_last)
- #else
- esmv_image_end_image(gx_device * dev, gx_image_enum_common_t * info, bool draw_last)
- #endif
- {
--#if GS_VERSION_MAJOR == 6
-+#if GS_VERSION_MAJOR >= 6
- gx_device *dev = info->dev;
- #endif
- gx_device_vector *const vdev = (gx_device_vector *) dev;
+@@ -407,6 +405,16 @@
+
+
+ /* Vector device implementation */
++#if GS_VERSION_MAJOR >= 8
++private int esmv_beginpage(gx_device_vector * vdev);
++private int esmv_setfillcolor(gx_device_vector * vdev, const gx_drawing_color * pdc);
++private int esmv_setstrokecolor(gx_device_vector * vdev, const gx_drawing_color * pdc);
++private int esmv_setdash(gx_device_vector * vdev, const float *pattern,
++ uint count, floatp offset);
++private int esmv_setflat(gx_device_vector * vdev, floatp flatness);
++private int esmv_setlogop(gx_device_vector * vdev, gs_logical_operation_t lop,
++ gs_logical_operation_t diff);
++#else
+ private int esmv_beginpage(P1(gx_device_vector * vdev));
+ private int esmv_setfillcolor(P2(gx_device_vector * vdev, const gx_drawing_color * pdc));
+ private int esmv_setstrokecolor(P2(gx_device_vector * vdev, const gx_drawing_color * pdc));
+@@ -415,10 +423,25 @@
+ private int esmv_setflat(P2(gx_device_vector * vdev, floatp flatness));
+ private int esmv_setlogop(P3(gx_device_vector * vdev, gs_logical_operation_t lop,
+ gs_logical_operation_t diff));
++#endif
+ private int esmv_vector_dorect(gx_device_vector * vdev, fixed x0, fixed y0, fixed x1,
+ fixed y1, gx_path_type_t type);
+ private int esmv_vector_dopath(gx_device_vector * vdev, const gx_path * ppath,
+ gx_path_type_t type);
++#if GS_VERSION_MAJOR >= 8
++private int esmv_beginpath(gx_device_vector * vdev, gx_path_type_t type);
++private int esmv_moveto(gx_device_vector * vdev, floatp x0, floatp y0,
++ floatp x, floatp y, gx_path_type_t type);
++private int esmv_lineto(gx_device_vector * vdev, floatp x0, floatp y0,
++ floatp x, floatp y, gx_path_type_t type);
++private int esmv_curveto(gx_device_vector * vdev, floatp x0, floatp y0,
++ floatp x1, floatp y1, floatp x2, floatp y2,
++ floatp x3, floatp y3, gx_path_type_t type);
++private int esmv_closepath(gx_device_vector * vdev, floatp x, floatp y,
++ floatp x_start, floatp y_start, gx_path_type_t type);
++
++private int esmv_endpath(gx_device_vector * vdev, gx_path_type_t type);
++#else
+ private int esmv_beginpath(P2(gx_device_vector * vdev, gx_path_type_t type));
+ private int esmv_moveto(P6(gx_device_vector * vdev, floatp x0, floatp y0,
+ floatp x, floatp y, gx_path_type_t type));
+@@ -431,6 +454,7 @@
+ floatp x_start, floatp y_start, gx_path_type_t type));
+
+ private int esmv_endpath(P2(gx_device_vector * vdev, gx_path_type_t type));
++#endif
+ private int esmv_setlinewidth(gx_device_vector * vdev, floatp width);
+ private int esmv_setlinecap(gx_device_vector * vdev, gs_line_cap cap);
+ private int esmv_setlinejoin(gx_device_vector * vdev, gs_line_join join);