summaryrefslogtreecommitdiff
blob: 131a7c270e3551eda7c64a83ba54c457ffaf7e31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Index: pstoraster/gdevcups.c
===================================================================
--- pstoraster/gdevcups.c	(revision 163)
+++ pstoraster/gdevcups.c	(working copy)
@@ -3722,7 +3722,11 @@
   * to separate each chunked color as needed...
   */
 
+#ifdef CUPS_RASTER_SYNCv1
   bandbytes = cups->header.cupsBytesPerLine / cups->header.cupsNumColors;
+#elif
+  bandbytes = (cups->header.cupsWidth * cups->header.cupsBitsPerColor + 7) / 8;
+#endif /* CUPS_RASTER_SYNCv1 */
 
   for (y = 0; y < cups->height; y ++)
   {