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

Comparing ray/src/rt/devmain.c (file contents):
Revision 2.4 by greg, Tue Feb 25 02:47:22 2003 UTC vs.
Revision 2.5 by greg, Thu Aug 18 00:52:48 2016 UTC

# Line 91 | Line 91 | r_paintr()                             /* paint a rectangle */
91          COLOR   col;
92          int     xmin, ymin, xmax, ymax;
93  
94 <        fread((char *)col, sizeof(COLOR), 1, devin);
94 >        getbinary((char *)col, sizeof(COLOR), 1, devin);
95          xmin = getw(devin); ymin = getw(devin);
96          xmax = getw(devin); ymax = getw(devin);
97          (*dev->paintr)(col, xmin, ymin, xmax, ymax);
# Line 200 | Line 200 | register char  *s;
200  
201   sendstate()                             /* send driver state variables */
202   {
203 <        fwrite((char *)&dev->pixaspect, sizeof(dev->pixaspect), 1, devout);
203 >        putbinary(&dev->pixaspect, sizeof(dev->pixaspect), 1, devout);
204          putw(dev->xsiz, devout);
205          putw(dev->ysiz, devout);
206          putw(dev->inpready, devout);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines