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

Comparing ray/src/px/ra_skel.c (file contents):
Revision 2.6 by greg, Mon Jul 12 12:41:16 1993 UTC vs.
Revision 2.7 by greg, Wed Oct 27 09:37:35 1993 UTC

# Line 134 | Line 134 | skel2ra()              /* convert 24-bit scanlines to Radiance pic
134                  quiterr("out of memory in skel2ra");
135                                                  /* convert image */
136          for (y = ymax-1; y >= 0; y--) {
137 <                scanout[x][RED] = getc(stdin);
138 <                scanout[x][GRN] = getc(stdin);
139 <                scanout[x][BLU] = getc(stdin);
140 <                if (feof(stdin) || ferror(stdin))
137 >                for (x = 0; x < xmax; x++) {
138 >                        scanout[x][RED] = getc(stdin);
139 >                        scanout[x][GRN] = getc(stdin);
140 >                        scanout[x][BLU] = getc(stdin);
141 >                }
142 >                if (feof(stdin) | ferror(stdin))
143                          quiterr("error reading skel image");
144                                                  /* undo gamma */
145                  gambs_colrs(scanout, xmax);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines