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.11 by schorsch, Sun Mar 28 20:33:14 2004 UTC vs.
Revision 2.12 by greg, Fri May 20 02:06:39 2011 UTC

# Line 23 | Line 23 | int bmap[MAXCOLORS];
23  
24   int currow;
25   long  picstart;
26 < BYTE  clrtab[256][3];
26 > uby8  clrtab[256][3];
27  
28   extern int  samplefac;
29  
30  
31   COLR    *scanln;
32 < BYTE    *pixscan;
32 > uby8    *pixscan;
33  
34   int  xmax, ymax;                        /* picture size */
35   double  gamv = 2.2;                     /* gamma correction */
# Line 195 | Line 195 | mkclrmap(                      /* make our color map */
195                  gmap[i] = clrtab[i][GRN];
196                  bmap[i] = clrtab[i][BLU];
197          }
198 <        if (dither && (pixscan = (BYTE *)malloc(xmax)) == NULL)
198 >        if (dither && (pixscan = (uby8 *)malloc(xmax)) == NULL)
199                  goto memerr;
200          return;
201   memerr:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines