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

Comparing ray/src/px/protate.c (file contents):
Revision 2.5 by gwlarson, Tue Oct 27 12:34:39 1998 UTC vs.
Revision 2.6 by gwlarson, Tue Oct 27 16:32:33 1998 UTC

# Line 142 | Line 142 | FILE   *fp;
142                                  exit(1);
143                          }
144                          for (inx = 0; inx < nrows && xoff+inx < xres; inx++)
145 <                                bcopy((char *)inln[xoff+inx],
146 <                                                (char *)scanbar[inx*yres+iny],
147 <                                                sizeof(COLR));
145 >                                copycolr(scanbar[inx*yres+iny],
146 >                                                inln[xoff+inx]);
147                  }
148                  for (inx = 0; inx < nrows && xoff+inx < xres; inx++)
149                          if (fwritecolrs(scanbar+inx*yres, yres, stdout) < 0) {
# Line 179 | Line 178 | FILE   *fp;
178                                  exit(1);
179                          }
180                          for (inx = 0; inx < nrows && xoff-inx >= 0; inx++)
181 <                                bcopy((char *)inln[xoff-inx],
182 <                                                (char *)scanbar[inx*yres+iny],
184 <                                                sizeof(COLR));
181 >                                copycolr(scanbar[inx*yres+iny],
182 >                                                inln[xoff-inx]);
183                  }
184                  for (inx = 0; inx < nrows && xoff-inx >= 0; inx++)
185                          if (fwritecolrs(scanbar+inx*yres, yres, stdout) < 0) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines