From 5e5d9490984b1424751687fd6d96ef81d76180e5 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Fri, 17 Jun 2016 13:22:27 +0100 Subject: Fix fz_write_pam code. It was incorrectly missing the alpha in the header writing code. --- source/tools/mudraw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/tools') diff --git a/source/tools/mudraw.c b/source/tools/mudraw.c index 7d17336b..6c27fc28 100644 --- a/source/tools/mudraw.c +++ b/source/tools/mudraw.c @@ -910,7 +910,7 @@ static void dodrawpage(fz_context *ctx, fz_page *page, fz_display_list *list, in if (output_format == OUT_PGM || output_format == OUT_PPM || output_format == OUT_PNM) fz_write_pnm_band(ctx, out, pix->w, totalheight, pix->n, pix->alpha, pix->stride, band, drawheight, pix->samples); else if (output_format == OUT_PAM) - fz_write_pam_band(ctx, out, pix->w, totalheight, pix->n, pix->stride, band, drawheight, pix->samples); + fz_write_pam_band(ctx, out, pix->w, totalheight, pix->n, pix->alpha, pix->stride, band, drawheight, pix->samples); else if (output_format == OUT_PNG) fz_write_png_band(ctx, out, poc, pix->stride, band, drawheight, pix->samples); else if (output_format == OUT_PWG) -- cgit v1.2.3