summaryrefslogtreecommitdiff
path: root/source/fitz/draw-unpack.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/fitz/draw-unpack.c')
-rw-r--r--source/fitz/draw-unpack.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/source/fitz/draw-unpack.c b/source/fitz/draw-unpack.c
index ba11cd3e..35ee9b41 100644
--- a/source/fitz/draw-unpack.c
+++ b/source/fitz/draw-unpack.c
@@ -231,23 +231,17 @@ fz_decode_tile(fz_context *ctx, fz_pixmap *pix, const float *decode)
int stride = pix->stride - pix->w * pix->n;
int len;
int n = fz_maxi(1, pix->n - pix->alpha);
- int needed;
int k;
int h;
- needed = 0;
for (k = 0; k < n; k++)
{
int min = decode[k * 2] * 255;
int max = decode[k * 2 + 1] * 255;
add[k] = min;
mul[k] = max - min;
- needed |= min != 0 || max != 255;
}
- if (!needed)
- return;
-
h = pix->h;
while (h--)
{