summaryrefslogtreecommitdiff
path: root/source/tools/mudraw.c
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2017-11-08 13:05:11 +0000
committerRobin Watts <robin.watts@artifex.com>2017-11-08 13:05:50 +0000
commit148341aff5bdc2678239383001328fa8010f2fe9 (patch)
tree7e26812caa86c573a7398136354a2b059cae8d23 /source/tools/mudraw.c
parent3119f69dd9536cdaab0719fba2898be894e8fc01 (diff)
downloadmupdf-148341aff5bdc2678239383001328fa8010f2fe9.tar.xz
Fix TGA banded operation.
Also, fix mudraw messages about what types can be banded.
Diffstat (limited to 'source/tools/mudraw.c')
-rw-r--r--source/tools/mudraw.c6
1 files changed, 3 insertions, 3 deletions
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)