diff options
Diffstat (limited to 'draw')
-rw-r--r-- | draw/imageunpack.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/draw/imageunpack.c b/draw/imageunpack.c index bbc22c70..2c7cb452 100644 --- a/draw/imageunpack.c +++ b/draw/imageunpack.c @@ -58,6 +58,16 @@ fz_unpacktile(fz_pixmap *dst, unsigned char * restrict src, int n, int depth, in if (depth == 1) initget1tables(); + if (scale == 0) + { + switch (depth) + { + case 1: scale = 255; break; + case 2: scale = 85; break; + case 4: scale = 17; break; + } + } + for (y = 0; y < dst->h; y++) { unsigned char *sp = src + y * stride; |