--- ray/src/px/ra_tiff.c 2005/03/22 04:51:56 2.29 +++ ray/src/px/ra_tiff.c 2005/03/22 15:26:05 2.30 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: ra_tiff.c,v 2.29 2005/03/22 04:51:56 greg Exp $"; +static const char RCSid[] = "$Id: ra_tiff.c,v 2.30 2005/03/22 15:26:05 greg Exp $"; #endif /* * Program to convert between RADIANCE and TIFF files. @@ -973,7 +973,7 @@ Color2RRGGBB( /* read/convert/write COLOR->RGB16 sca colortrans(cvts.r.colors[x], cvts.cmat, cvts.r.colors[x]); if (CHK(C_GAMUT)) - clipgamut(cvts.r.colors[x], cvts.t.fp[3*x + 1], + clipgamut(cvts.r.colors[x], bright(cvts.r.colors[x]), CGAMUT_LOWER, cblack, cwhite); } for (i = 3; i--; ) {