summaryrefslogtreecommitdiff
path: root/source/fitz/load-pnm.c
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2016-10-13 21:46:37 +0800
committerSebastian Rasmussen <sebras@gmail.com>2016-10-14 01:19:06 +0800
commit18f07aea2f40164b3da68f155be1303d09fd2741 (patch)
tree86c4c5e27efab098f1a2bc80283b2033c220ce7c /source/fitz/load-pnm.c
parent552d78bacc64c29d183d2a3d9d20b752c5c054ce (diff)
downloadmupdf-18f07aea2f40164b3da68f155be1303d09fd2741.tar.xz
pnm: Interpret binary b/w image samples correctly.
Commit c2acdba7e9b72e18afdd3aa8dfdf66088b1ea1be mistakenly inverted the interpretation of samples for both both binary and ascii b/w PNM images when, at the time, there was only a mistake for ascii images.
Diffstat (limited to 'source/fitz/load-pnm.c')
-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 8aaecd4f..d9d433c9 100644
--- a/source/fitz/load-pnm.c
+++ b/source/fitz/load-pnm.c
@@ -354,7 +354,7 @@ pnm_binary_read_image(fz_context *ctx, struct info *pnm, unsigned char *p, unsig
{
for (x = 0; x < w; x++)
{
- *dp++ = (*p & (1 << (7 - (x & 0x7)))) ? 0xff : 0x00;
+ *dp++ = (*p & (1 << (7 - (x & 0x7)))) ? 0x00 : 0xff;
if ((x & 0x7) == 7)
p++;
}