diff options
author | Robin Watts <robin.watts@artifex.com> | 2016-06-17 13:22:27 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2016-06-17 13:25:22 +0100 |
commit | 5e5d9490984b1424751687fd6d96ef81d76180e5 (patch) | |
tree | 8fac588a6bce397d4acd86ebc2034833e5ce8acd /source/tools/mudraw.c | |
parent | f653eac3bac807f13ecba3e8463c4de3689da090 (diff) | |
download | mupdf-5e5d9490984b1424751687fd6d96ef81d76180e5.tar.xz |
Fix fz_write_pam code.
It was incorrectly missing the alpha in the header writing code.
Diffstat (limited to 'source/tools/mudraw.c')
-rw-r--r-- | source/tools/mudraw.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |