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

Comparing ray/src/px/ximage.c (file contents):
Revision 1.17 by greg, Fri Dec 1 15:50:26 1989 UTC vs.
Revision 1.19 by greg, Sun Dec 10 12:12:55 1989 UTC

# Line 185 | Line 185 | char  *s;
185   }
186  
187  
188 char *
189 sskip(s)                /* skip a word */
190 register char  *s;
191 {
192        while (isspace(*s)) s++;
193        while (*s && !isspace(*s)) s++;
194        return(s);
195 }
196
197
188   init()                  /* get data and open window */
189   {
190          register int  i;
# Line 670 | Line 660 | register rgbpixel  *l3;
660          if (getscan(y) < 0)
661                  quiterr("cannot seek for picreadline");
662                                                          /* convert scanline */
663 <        if (scale != 0)
663 >        if (scale)
664                  for (i = 0; i < xmax; i++)
665 <                        if (scanline[i][EXP]+scale >= 0)
665 >                        if (scanline[i][EXP])
666                                  scanline[i][EXP] += scale;
667          normcolrs(scanline, xmax);
668          for (i = 0; i < xmax; i++) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines