From 8754d4a8c137df5594fdd153ec2a990f7fe26bed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20H=C3=BCbinette=20=28Hubbe=29?= <hubbe@hubbe.net> Date: Tue, 1 Feb 2000 15:53:00 -0800 Subject: [PATCH] fixed a warning Rev: src/modules/_Image_TIFF/image_tiff.c:1.12 --- src/modules/_Image_TIFF/image_tiff.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/modules/_Image_TIFF/image_tiff.c b/src/modules/_Image_TIFF/image_tiff.c index f87e96e214..521a23c4a0 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); -- GitLab