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

Comparing ray/src/px/ra_gif.c (file contents):
Revision 2.5 by greg, Mon Nov 21 15:55:59 1994 UTC vs.
Revision 2.6 by greg, Mon Apr 3 15:29:43 1995 UTC

# Line 52 | Line 52 | int  dither = 1;                       /* dither colors? */
52  
53   int  bradj = 0;                         /* brightness adjustment */
54  
55 + int  ncolors = 0;                       /* number of colors requested */
56 +
57   char  *progname;
58  
59  
# Line 59 | Line 61 | main(argc, argv)
61   int  argc;
62   char  *argv[];
63   {
62        int  ncolors = 0;
64          int  bitsperpix;
65          int  i;
66   #ifdef MSDOS
# Line 228 | Line 229 | int  x, y;
229  
230          getrow(y);
231          if (greyscale)
232 <                return(normbright(scanln[x]));
232 >                return((normbright(scanln[x])*ncolors)>>8);
233          if (pixscan != NULL)
234                  return(pixscan[x]);
235          return(samplefac ? neu_map_pixel(scanln[x]) : map_pixel(scanln[x]));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines