summaryrefslogtreecommitdiff
path: root/raster
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@hotmail.com>2008-03-20 11:26:49 +0100
committerSebastian Rasmussen <sebras@hotmail.com>2008-03-20 11:26:49 +0100
commit6654383b69c17b9d4f751bc9e5852b1c7b75c076 (patch)
tree2fbba63d7d2002bcc221b6045f2934c4e7fb01dc /raster
parente97c8f451deb232da680f718efbd6d97dd3375ba (diff)
downloadmupdf-6654383b69c17b9d4f751bc9e5852b1c7b75c076.tar.xz
Adapted whitespace in decodetile patch.
Diffstat (limited to 'raster')
-rw-r--r--raster/imageunpack.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/raster/imageunpack.c b/raster/imageunpack.c
index 18d59cf5..9a6fe1b1 100644
--- a/raster/imageunpack.c
+++ b/raster/imageunpack.c
@@ -29,7 +29,8 @@ static void decodetile(fz_pixmap *pix, int skip, float *decode)
min[i] = decode[(i - skip) * 2] * 255;
max[i] = decode[(i - skip) * 2 + 1] * 255;
sub[i] = max[i] - min[i];
- needed |= (min[i] != 0) | (max[i] != 255);
+ needed |= (min[i] != 0) | (max[i] != 255);
+ justinvert &= min[i] == 255 && max[i] == 0 && sub[i] == -255;
}
if (!needed)