blob: 2bc89778a51f248546ed941dc26f25facd7fa14e (
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;
+#else
+ bandbytes = (cups->header.cupsWidth * cups->header.cupsBitsPerColor + 7) / 8;
+#endif /* CUPS_RASTER_SYNCv1 */
for (y = 0; y < cups->height; y ++)
{
|