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/tools/mudraw.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/tools') diff --git a/source/tools/mudraw.c b/source/tools/mudraw.c index 9477919e..6eba8825 100644 --- a/source/tools/mudraw.c +++ b/source/tools/mudraw.c @@ -327,7 +327,7 @@ static void usage(void) "\t-w -\twidth (in pixels) (maximum width if -r is specified)\n" "\t-h -\theight (in pixels) (maximum height if -r is specified)\n" "\t-f -\tfit width and/or height exactly; ignore original aspect ratio\n" - "\t-B -\tmaximum band_height (pgm, ppm, pam, png output only)\n" + "\t-B -\tmaximum band_height (pXm, pcl, pclm, ps, psd and png output only)\n" #ifndef DISABLE_MUTHREADS "\t-T -\tnumber of threads to use for rendering (banded mode only)\n" #else @@ -1693,9 +1693,9 @@ int mudraw_main(int argc, char **argv) if (band_height) { - if (output_format != OUT_PAM && output_format != OUT_PGM && output_format != OUT_PPM && output_format != OUT_PNM && output_format != OUT_PNG && output_format != OUT_PBM && output_format != OUT_PKM && output_format != OUT_PCL && output_format != OUT_PCLM && output_format != OUT_PS && output_format != OUT_PSD) + if (output_format != OUT_PAM && output_format != OUT_PGM && output_format != OUT_PPM && output_format != OUT_PNM && output_format != OUT_PNG && output_format != OUT_PBM && output_format != OUT_PKM && output_format != OUT_PCL && output_format != OUT_PCLM && output_format != OUT_PS && output_format != OUT_PSD && output_format != OUT_TGA) { - fprintf(stderr, "Banded operation only possible with PAM, PBM, PGM, PKM, PPM, PNM, PCL, PCLM, PS, PSD and PNG outputs\n"); + fprintf(stderr, "Banded operation only possible with PxM, PCL, PCLM, PS, PSD, PNG and TGA outputs\n"); exit(1); } if (showmd5) -- cgit v1.2.3