diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2003-09-27 02:47:58 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2003-09-27 02:47:58 +0000 |
commit | 11dcdf79fac488130c0ada715e9f53ed013a0456 (patch) | |
tree | 50958f8889644247fb438eb1055144ea524c6b3b /print/ghostscript7/files/patch-lips:gdevl4r.c | |
parent | Update port: print/ghostscript-gnu (diff) |
Don't forget the patches for ports/57009
PR: ports/57009
Submmited by: KATO Tsuguru <tkato@prontomail.com>
Notes
Notes:
svn path=/head/; revision=89499
Diffstat (limited to 'print/ghostscript7/files/patch-lips:gdevl4r.c')
-rw-r--r-- | print/ghostscript7/files/patch-lips:gdevl4r.c | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/print/ghostscript7/files/patch-lips:gdevl4r.c b/print/ghostscript7/files/patch-lips:gdevl4r.c new file mode 100644 index 000000000000..267f26ac8a13 --- /dev/null +++ b/print/ghostscript7/files/patch-lips:gdevl4r.c @@ -0,0 +1,47 @@ +--- lips/gdevl4r.c.orig Thu Nov 2 12:09:18 2000 ++++ lips/gdevl4r.c Fri Sep 12 09:22:08 2003 +@@ -178,8 +178,13 @@ + private int lips4c_output_page(gx_device_printer * pdev, FILE * prn_stream); + private int lips_delta_encode(byte * inBuff, byte * prevBuff, byte * outBuff, byte * diffBuff, int Length); + private int lips_byte_cat(byte * TotalBuff, byte * Buff, int TotalLen, int Len); ++#if GS_VERSION_MAJOR >= 8 ++private int lips_print_page_copies(gx_device_printer * pdev, FILE * prn_stream, lips_printer_type ptype, int numcopies); ++private int lips_print_page_copies(gx_device_printer * pdev, FILE * prn_stream, lips_printer_type ptype, int numcopies); ++#else + private int lips_print_page_copies(P4(gx_device_printer * pdev, FILE * prn_stream, lips_printer_type ptype, int numcopies)); + private int lips_print_page_copies(P4(gx_device_printer * pdev, FILE * prn_stream, lips_printer_type ptype, int numcopies)); ++#endif + private int lips4type_print_page_copies(gx_device_printer * pdev, FILE * prn_stream, int num_copies, int ptype); + + private int +@@ -1065,11 +1070,11 @@ + if (paper_size == USER_SIZE) { + fprintf(prn_stream, "%c2 I", LIPS_CSI); + fprintf(prn_stream, "%c80;%d;%dp", LIPS_CSI, +- width * 10, height * 10); ++ height * 10, width * 10); + } else if (paper_size == USER_SIZE + LANDSCAPE) { + fprintf(prn_stream, "%c2 I", LIPS_CSI); + fprintf(prn_stream, "%c81;%d;%dp", LIPS_CSI, +- height * 10, width * 10); ++ width * 10, height * 10); + } else { + fprintf(prn_stream, "%c%dp", LIPS_CSI, paper_size); + } +@@ -1078,14 +1083,14 @@ + prev_paper_height != height) { + fprintf(prn_stream, "%c2 I", LIPS_CSI); + fprintf(prn_stream, "%c80;%d;%dp", LIPS_CSI, +- width * 10, height * 10); ++ height * 10, width * 10); + } + } else if (paper_size == USER_SIZE + LANDSCAPE) { + if (prev_paper_width != width || + prev_paper_height != height) { + fprintf(prn_stream, "%c2 I", LIPS_CSI); + fprintf(prn_stream, "%c81;%d;%dp", LIPS_CSI, +- height * 10, width * 10); ++ width * 10, height * 10); + } + } + /* desired number of copies */ |