diff options
author | Tor Andersson <tor@ghostscript.com> | 2008-03-21 00:45:43 +0100 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2008-03-21 00:45:43 +0100 |
commit | 5d21225f43d423f5f03244f398c14aa5ac325e58 (patch) | |
tree | 8e3bcade6d30a1c32d40f2f3d2ea4262ca6403e4 | |
parent | 51fbd6bc9ed5e86170f292615e037fdd7f3678e2 (diff) | |
download | mupdf-5d21225f43d423f5f03244f398c14aa5ac325e58.tar.xz |
Fixed typo in image tiling.
-rw-r--r-- | raster/imageunpack.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/raster/imageunpack.c b/raster/imageunpack.c index fbffc806..a07d4f16 100644 --- a/raster/imageunpack.c +++ b/raster/imageunpack.c @@ -50,7 +50,7 @@ static void decodetile(fz_pixmap *pix, int skip, float *decode) if ((((unsigned)wp) & 3) == 0) { int hwh = wh / 2; - wh = hwh * 2 - wh; + wh = wh - 2 * hwh; while(hwh--) { unsigned in = *wp; #if BYTE_ORDER == LITTLE_ENDIAN @@ -62,7 +62,7 @@ static void decodetile(fz_pixmap *pix, int skip, float *decode) } p = (byte *)wp; } - while(wh--) { + if (wh--) { p[0] = p[0]; p[1] = 255 - p[1]; p += 2; |