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.8 by schorsch, Thu Jun 5 19:29:34 2003 UTC vs.
Revision 2.10 by schorsch, Sun Jul 27 22:12:03 2003 UTC

# Line 118 | Line 118 | char  *argv[];
118                                  /* set up gamma correction */
119          setcolrgam(gamv);
120                                  /* figure out the bits per pixel */
121 <        if (ncolors < 2 | ncolors > MAXCOLORS)
121 >        if ((ncolors < 2) | (ncolors > MAXCOLORS))
122                  ncolors = MAXCOLORS;
123          for (bitsperpix = 1; ncolors > 1<<bitsperpix; bitsperpix++)
124                  ;
# Line 158 | Line 158 | int  y;
158          if (bradj)
159                  shiftcolrs(scanln, xmax, bradj);
160          colrs_gambs(scanln, xmax);
161 <        if (pixscan != NULL)
161 >        if (pixscan != NULL) {
162                  if (samplefac)
163                          neu_dith_colrs(pixscan, scanln, xmax);
164                  else
165                          dith_colrs(pixscan, scanln, xmax);
166 +        }
167   }
168  
169  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines