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.21 by greg, Mon Jan 8 14:47:11 1990 UTC vs.
Revision 1.23 by greg, Fri Jan 26 08:17:43 1990 UTC

# Line 656 | Line 656 | register rgbpixel  *l3;
656          if (getscan(y) < 0)
657                  quiterr("cannot seek for picreadline");
658                                                          /* convert scanline */
659 <        if (scale)
660 <                for (i = 0; i < xmax; i++)
661 <                        if (scanline[i][EXP])
662 <                                scanline[i][EXP] += scale;
663 <        normcolrs(scanline, xmax);
659 >        normcolrs(scanline, xmax, scale);
660          for (i = 0; i < xmax; i++) {
661                  l3[i].r = scanline[i][RED];
662                  l3[i].g = scanline[i][GRN];
# Line 673 | Line 669 | picwriteline(y, l)             /* add 8-bit scanline to image */
669   int  y;
670   pixel  *l;
671   {
672 <        bcopy(l, ourras->data.bz+BZPixmapSize(xmax,y), BZPixmapSize(xmax,1));
672 >        bcopy((char *)l, (char *)ourras->data.bz+BZPixmapSize(xmax,y), BZPixmapSize(xmax,1));
673   }
674  
675  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines