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

Comparing ray/src/rt/colortab.c (file contents):
Revision 2.8 by schorsch, Mon Jun 30 14:59:12 2003 UTC vs.
Revision 2.9 by schorsch, Tue Mar 30 16:13:01 2004 UTC

# Line 21 | Line 21 | static const char      RCSid[] = "$Id$";
21  
22   #include "standard.h"
23   #include "color.h"
24 + #include "driver.h"
25  
26                                  /* histogram resolution */
27   #define NRED            24
# Line 92 | Line 93 | int    ncolors;
93   }
94  
95  
96 < int
97 < get_pixel(col, set_pixel)       /* get pixel for color */
98 < COLOR   col;
99 < void    (*set_pixel)();
96 > extern int
97 > get_pixel(      /* get pixel for color */
98 >        COLOR   col,
99 >        dr_newcolrf_t *newcolr
100 > )
101   {
102          int     r, g, b;
103          int     cv[3];
# Line 140 | Line 142 | void   (*set_pixel)();
142                                  h, r, g, b, clrtab[h].n);
143                  eputs(errmsg);
144   #endif
145 <                (*set_pixel)(h, r, g, b);
145 >                (*newcolr)(h, r, g, b);
146          }
147          return(h);                              /* return pixel value */
148   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines