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

Comparing ray/src/rt/rpict.c (file contents):
Revision 2.2 by greg, Thu Nov 21 10:10:46 1991 UTC vs.
Revision 2.3 by greg, Tue Dec 10 17:42:01 1991 UTC

# Line 277 | Line 277 | int  xres, y, xstep;
277                  z = pixvalue(scanline[i], i, y);
278                  if (zline) zline[i] = z;
279                  if (sd) b = sd[0] > sd[1] ? sd[0] : sd[1];
280 <                b = fillsample(scanline+i-xstep, zline ? zline+i-xstep : NULL,
281 <                                i-xstep, y, xstep, 0, b/2);
280 >                if (i <= xstep)
281 >                        b = fillsample(scanline, zline, 0, y, i, 0, b/2);
282 >                else
283 >                        b = fillsample(scanline+i-xstep,
284 >                                        zline ? zline+i-xstep : NULL,
285 >                                        i-xstep, y, xstep, 0, b/2);
286                  if (sd) *sd++ = nc & 1 ? bl : b;
287                  bl = b;
288          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines