diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2016-10-13 21:46:37 +0800 |
---|---|---|
committer | Sebastian Rasmussen <sebras@gmail.com> | 2016-10-14 01:19:06 +0800 |
commit | 18f07aea2f40164b3da68f155be1303d09fd2741 (patch) | |
tree | 86c4c5e27efab098f1a2bc80283b2033c220ce7c /source | |
parent | 552d78bacc64c29d183d2a3d9d20b752c5c054ce (diff) | |
download | mupdf-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')
-rw-r--r-- | source/fitz/load-pnm.c | 2 |
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++; } |