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

Comparing ray/src/rt/p_data.c (file contents):
Revision 1.3 by greg, Tue May 1 17:01:03 1990 UTC vs.
Revision 1.4 by greg, Wed Jan 2 18:22:40 1991 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1986 Regents of the University of California */
1 > /* Copyright (c) 1991 Regents of the University of California */
2  
3   #ifndef lint
4   static char SCCSid[] = "$SunId$ LBL";
# Line 172 | Line 172 | RAY  *r;
172                  objerror(m, USER, "bad # arguments");
173          if (!vardefined(sa[5]))
174                  loadfunc(sa[4]);
175 <        for (i = 0; i < 2; i++) {
176 <                errno = 0;
177 <                pt[1-i] = varvalue(sa[i+5]);    /* y major ordering */
178 <                if (errno)
179 <                        goto computerr;
180 <        }
175 >        errno = 0;
176 >        pt[1] = varvalue(sa[5]);        /* y major ordering */
177 >        pt[0] = varvalue(sa[6]);
178 >        if (errno)
179 >                goto computerr;
180          dp = getpict(sa[3]);
181          for (i = 0; i < 3; i++)
182                  col[i] = datavalue(dp+i, pt);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines