ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/cv/mgflib/context.c
(Generate patch)

Comparing ray/src/cv/mgflib/context.c (file contents):
Revision 1.5 by greg, Fri Jun 24 16:28:15 1994 UTC vs.
Revision 1.7 by greg, Sat Jun 25 09:48:01 1994 UTC

# Line 363 | Line 363 | char   *name;
363   }
364  
365  
366 + C_COLOR *
367 + c_getcolor(name)                /* get a named color */
368 + char    *name;
369 + {
370 +        register LUENT  *lp;
371 +
372 +        if ((lp = lu_find(&clr_tab, name)) == NULL)
373 +                return(NULL);
374 +        return((C_COLOR *)lp->data);
375 + }
376 +
377 +
378   int
379   c_isgrey(clr)                   /* check if color is grey */
380   register C_COLOR        *clr;
# Line 385 | Line 397 | int    fl;
397  
398          if (clr->flags & fl)            /* already done */
399                  return;
400 <        if (!(clr->flags & (C_SXY|C_SSPEC))     /* nothing set */
400 >        if (!(clr->flags & (C_CSXY|C_CSSPEC)))  /* nothing set */
401                  *clr = c_dfcolor;
402          else if (fl & C_CSXY) {         /* cspec -> cxy */
403                  x = y = z = 0.;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines