diff --git a/src/modules/_Image_TIFF/image_tiff.c b/src/modules/_Image_TIFF/image_tiff.c index f87e96e2146280c41ea8bbd550a3fa4935872f48..521a23c4a0882146c8cee3107eafc4f0dd1ec53f 100644 --- a/src/modules/_Image_TIFF/image_tiff.c +++ b/src/modules/_Image_TIFF/image_tiff.c @@ -13,7 +13,7 @@ #ifdef HAVE_LIBTIFF -RCSID("$Id: image_tiff.c,v 1.11 1999/08/17 02:46:38 hubbe Exp $"); +RCSID("$Id: image_tiff.c,v 1.12 2000/02/01 23:53:00 hubbe Exp $"); #include "global.h" #include "machine.h" @@ -196,7 +196,6 @@ struct options float ydpy; }; -#define MAX(X,Y) ((X)>(Y)?(X):(Y)) void low_image_tiff_encode( struct buffer *buf, struct imagealpha *img, @@ -258,7 +257,7 @@ void low_image_tiff_encode( struct buffer *buf, if(opts->name) TIFFSetField(tif, TIFFTAG_DOCUMENTNAME, opts->name); TIFFSetField(tif, TIFFTAG_SAMPLESPERPIXEL, spp); - TIFFSetField(tif, TIFFTAG_ROWSPERSTRIP, MAX(8192/i->xsize/spp,1)); + TIFFSetField(tif, TIFFTAG_ROWSPERSTRIP, MAXIMUM(8192/i->xsize/spp,1)); TIFFSetField(tif, TIFFTAG_PLANARCONFIG, PLANARCONFIG_CONTIG); TIFFSetField(tif, TIFFTAG_RESOLUTIONUNIT, RESUNIT_INCH); TIFFSetField(tif, TIFFTAG_XRESOLUTION, opts->xdpy);