Skip to content

Commit 2768f25

Browse files
committed
Fix dithering for pdftoppm path.
1 parent a071d3c commit 2768f25

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/ipptransform.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4101,7 +4101,7 @@ xform_document(
41014101
if (fread(linein, width, bpp, fp))
41024102
{
41034103
if (ras.header.cupsBitsPerPixel == 1)
4104-
dither_gray(&ras, y, lineout, ras.header.cupsBytesPerLine);
4104+
dither_gray(&ras, y, lineout, ras.right - ras.left);
41054105
else if (ras.header.cupsColorSpace == CUPS_CSPACE_K)
41064106
pack_black(lineout, ras.right - ras.left);
41074107

0 commit comments

Comments
 (0)