--- ray/src/common/ccyrgb.c 2011/02/18 00:40:25 3.1 +++ ray/src/common/ccyrgb.c 2012/05/17 17:10:23 3.3 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: ccyrgb.c,v 3.1 2011/02/18 00:40:25 greg Exp $"; +static const char RCSid[] = "$Id: ccyrgb.c,v 3.3 2012/05/17 17:10:23 greg Exp $"; #endif /* * Convert MGF color to RGB representation @@ -38,11 +38,12 @@ rgb2ccy(COLOR cin, C_COLOR *cout) *cout = c_dfcolor; df = xyz[CIEX] + xyz[CIEY] + xyz[CIEZ]; if (df <= .0) - return; + return(.0); df = 1./df; cout->cx = xyz[CIEX]*df; cout->cy = xyz[CIEZ]*df; cout->flags = (C_CSXY|C_CDXY); + cout->clock++; return(xyz[CIEY]); }