From 148341aff5bdc2678239383001328fa8010f2fe9 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Wed, 8 Nov 2017 13:05:11 +0000 Subject: Fix TGA banded operation. Also, fix mudraw messages about what types can be banded. --- source/fitz/output-tga.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/fitz/output-tga.c') diff --git a/source/fitz/output-tga.c b/source/fitz/output-tga.c index 0e7a213c..20d9983e 100644 --- a/source/fitz/output-tga.c +++ b/source/fitz/output-tga.c @@ -125,7 +125,7 @@ tga_write_band(fz_context *ctx, fz_band_writer *writer_, int stride, int band_st int is_bgr = writer->is_bgr; int k; - for (k = 0; k < h; k++) + for (k = 0; k < band_height; k++) { int i, j; const unsigned char *line = samples + stride * k; -- cgit v1.2.3