summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2016-10-13 21:20:44 +0800
committerSebastian Rasmussen <sebras@gmail.com>2016-10-14 01:19:07 +0800
commit126565f00653f7b6e05999ce309b8e07e14ef548 (patch)
tree36a0103baf4593889fb104bb260e2e0dd6887b21 /source
parent9a87ef85fe92a1be62211ea8af8afd08dc460562 (diff)
downloadmupdf-126565f00653f7b6e05999ce309b8e07e14ef548.tar.xz
pnm: PAM images have component inverted compared to PNM.
Diffstat (limited to 'source')
-rw-r--r--source/fitz/load-pnm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/fitz/load-pnm.c b/source/fitz/load-pnm.c
index 7c31c4df..abb97096 100644
--- a/source/fitz/load-pnm.c
+++ b/source/fitz/load-pnm.c
@@ -512,7 +512,7 @@ pam_binary_read_image(fz_context *ctx, struct info *pnm, unsigned char *p, unsig
for (y = 0; y < h; y++)
for (x = 0; x < w; x++)
for (k = 0; k < n; k++)
- *dp++ = *p++ ? 0x00 : 0xff;
+ *dp++ = *p++ ? 0xff : 0x00;
}
else if (pnm->maxval < 255)
{