diff options
author | Kirill Ponomarev <krion@FreeBSD.org> | 2004-02-29 08:18:45 +0000 |
---|---|---|
committer | Kirill Ponomarev <krion@FreeBSD.org> | 2004-02-29 08:18:45 +0000 |
commit | 9ffdff88acffe7b997959c7cba21adc0367706e4 (patch) | |
tree | 7e70f20145f23097219ed30f65c0665e92104cda /print/ghostscript8/files/patch-lips:gdevl4v.c | |
parent | Update to 2.1.27. (diff) |
- Update to version 8.14
PR: ports/63497
Submitted by: Ports Fury
Notes
Notes:
svn path=/head/; revision=102492
Diffstat (limited to 'print/ghostscript8/files/patch-lips:gdevl4v.c')
-rw-r--r-- | print/ghostscript8/files/patch-lips:gdevl4v.c | 50 |
1 files changed, 41 insertions, 9 deletions
diff --git a/print/ghostscript8/files/patch-lips:gdevl4v.c b/print/ghostscript8/files/patch-lips:gdevl4v.c index 15f8af27eda0..37dc6d4f006c 100644 --- a/print/ghostscript8/files/patch-lips:gdevl4v.c +++ b/print/ghostscript8/files/patch-lips:gdevl4v.c @@ -1,5 +1,5 @@ --- lips/gdevl4v.c.orig Thu Nov 2 12:09:18 2000 -+++ lips/gdevl4v.c Wed Dec 10 19:42:42 2003 ++++ lips/gdevl4v.c Tue Jan 13 01:30:38 2004 @@ -230,41 +230,66 @@ }; @@ -92,35 +92,67 @@ private int lips4v_setlinewidth(gx_device_vector * vdev, floatp width); private int lips4v_setlinecap(gx_device_vector * vdev, gs_line_cap cap); private int lips4v_setlinejoin(gx_device_vector * vdev, gs_line_join join); -@@ -758,10 +783,10 @@ +@@ -758,10 +783,26 @@ /* 用紙サイズ */ if (pdev->prev_paper_size != paper_size) { if (paper_size == USER_SIZE) { - sprintf(paper, "%c80;%d;%dp", LIPS_CSI, width * 10, height * 10); -+ sprintf(paper, "%c80;%d;%dp", LIPS_CSI, height * 10, width * 10); ++ /* modified by shige 06/27 2003 ++ sprintf(paper, "%c80;%d;%dp", LIPS_CSI, width * 10, height * 10); */ ++ /* modified by shige 11/09 2003 ++ sprintf(paper, "%c80;%d;%dp", LIPS_CSI, height * 10, width * 10); */ ++ sprintf(paper, "%c80;%d;%dp", LIPS_CSI, ++ (height * 10 > LIPS_HEIGHT_MAX_720)? ++ LIPS_HEIGHT_MAX_720 : (height * 10), ++ (width * 10 > LIPS_WIDTH_MAX_720)? ++ LIPS_WIDTH_MAX_720 : (width * 10)); lputs(s, paper); } else if (paper_size == USER_SIZE + LANDSCAPE) { - sprintf(paper, "%c81;%d;%dp", LIPS_CSI, height * 10, width * 10); -+ sprintf(paper, "%c81;%d;%dp", LIPS_CSI, width * 10, height * 10); ++ /* modified by shige 06/27 2003 ++ sprintf(paper, "%c81;%d;%dp", LIPS_CSI, height * 10, width * 10); */ ++ /* modified by shige 11/09 2003 ++ sprintf(paper, "%c81;%d;%dp", LIPS_CSI, width * 10, height * 10); */ ++ sprintf(paper, "%c80;%d;%dp", LIPS_CSI, ++ (width * 10 > LIPS_HEIGHT_MAX_720)? ++ LIPS_HEIGHT_MAX_720 : (width * 10), ++ (height * 10 > LIPS_WIDTH_MAX_720)? ++ LIPS_WIDTH_MAX_720 : (height * 10)); lputs(s, paper); } else { sprintf(paper, "%c%dp", LIPS_CSI, paper_size); -@@ -770,12 +795,12 @@ +@@ -770,12 +811,28 @@ } else if (paper_size == USER_SIZE) { if (pdev->prev_paper_width != width || pdev->prev_paper_height != height) - sprintf(paper, "%c80;%d;%dp", LIPS_CSI, width * 10, height * 10); -+ sprintf(paper, "%c80;%d;%dp", LIPS_CSI, height * 10, width * 10); ++ /* modified by shige 06/27 2003 ++ sprintf(paper, "%c80;%d;%dp", LIPS_CSI, width * 10, height * 10); */ ++ /* modified by shige 11/09 2003 ++ sprintf(paper, "%c80;%d;%dp", LIPS_CSI, height * 10, width * 10); */ ++ sprintf(paper, "%c80;%d;%dp", LIPS_CSI, ++ (height * 10 > LIPS_HEIGHT_MAX_720)? ++ LIPS_HEIGHT_MAX_720 : (height * 10), ++ (width * 10 > LIPS_WIDTH_MAX_720)? ++ LIPS_WIDTH_MAX_720 : (width * 10)); lputs(s, paper); } else if (paper_size == USER_SIZE + LANDSCAPE) { if (pdev->prev_paper_width != width || pdev->prev_paper_height != height) - sprintf(paper, "%c81;%d;%dp", LIPS_CSI, height * 10, width * 10); -+ sprintf(paper, "%c81;%d;%dp", LIPS_CSI, width * 10, height * 10); ++ /* modified by shige 06/27 2003 ++ sprintf(paper, "%c81;%d;%dp", LIPS_CSI, height * 10, width * 10); */ ++ /* modified by shige 11/09 2003 ++ sprintf(paper, "%c81;%d;%dp", LIPS_CSI, width * 10, height * 10); */ ++ sprintf(paper, "%c80;%d;%dp", LIPS_CSI, ++ (width * 10 > LIPS_HEIGHT_MAX_720)? ++ LIPS_HEIGHT_MAX_720 : (width * 10), ++ (height * 10 > LIPS_WIDTH_MAX_720)? ++ LIPS_WIDTH_MAX_720 : (height * 10)); lputs(s, paper); } pdev->prev_paper_size = paper_size; -@@ -1881,7 +1906,7 @@ +@@ -1881,7 +1938,7 @@ } color_set_pure(&color, one); code = gdev_vector_update_fill_color((gx_device_vector *) pdev, @@ -129,7 +161,7 @@ } if (code < 0) return 0; -@@ -2026,7 +2051,7 @@ +@@ -2026,7 +2083,7 @@ if (w <= 0 || h <= 0) return 0; if (depth > 1 || |