[packages/ghostscript] correct functions used in gdevcd8 patch
atler
atler at pld-linux.org
Wed Jul 10 15:50:21 CEST 2024
commit 1e339f7f6b86e5aded5ec83e90267ca6e4471bd0
Author: Jan Palus <atler at pld-linux.org>
Date: Wed Jul 10 14:44:44 2024 +0200
correct functions used in gdevcd8 patch
ghostscript-gdevcd8-fixes.patch | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/ghostscript-gdevcd8-fixes.patch b/ghostscript-gdevcd8-fixes.patch
index 9581546..6b680a0 100644
--- a/ghostscript-gdevcd8-fixes.patch
+++ b/ghostscript-gdevcd8-fixes.patch
@@ -100,7 +100,7 @@ Jakub Bogusz <qboosh at pld-linux.org>
+ if(cdj850->ptype == DJ880C)
gp_fprintf(prn_stream, "\033*b%dY", num_blank_lines / (cdj850->yscal + 1));
+ else /* still in *b if not dj880 */
-+ fprintf(prn_stream, "%dy", num_blank_lines / (cdj850->yscal + 1));
++ gp_fprintf(prn_stream, "%dy", num_blank_lines / (cdj850->yscal + 1));
memset(data_ptrs->plane_data[0][0], 0,
(misc_vars->plane_size * 2 * misc_vars->num_comps));
memset(data_ptrs->plane_data_c[0][0], 0,
@@ -111,7 +111,7 @@ Jakub Bogusz <qboosh at pld-linux.org>
+ if(cdj850->ptype == DJ880C)
gp_fprintf(prn_stream, "\033*b0V");
+ else /* still in *b if not dj880 */
-+ putc('v', prn_stream);
++ gp_fputc('v', prn_stream);
}
/* now output all non blank lines */
while (lnum < lend && llen != 0) {
@@ -124,7 +124,7 @@ Jakub Bogusz <qboosh at pld-linux.org>
+ gp_fprintf(prn_stream, "%d%c", out_count, plane_code);
gp_fwrite(out_data, sizeof(byte), out_count, prn_stream);
+ } else { /* single plane_code is sufficient for cdj850 */
-+ putc(plane_code, prn_stream);
++ gp_fputc(plane_code, prn_stream);
}
}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ghostscript.git/commitdiff/6901b6cb37b4cf8fcfb6b53af6b88423e99552b7
More information about the pld-cvs-commit
mailing list