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

Comparing ray/src/rt/devcomm.c (file contents):
Revision 2.18 by schorsch, Sun Mar 6 01:13:17 2016 UTC vs.
Revision 2.19 by greg, Thu Aug 18 00:52:48 2016 UTC

# Line 177 | Line 177 | comm_paintr(   /* paint a rectangle */
177   )
178   {
179          putc(COM_PAINTR, devout);
180 <        fwrite((char *)col, sizeof(COLOR), 1, devout);
180 >        putbinary(col, sizeof(COLOR), 1, devout);
181          putw(xmin, devout);
182          putw(ymin, devout);
183          putw(xmax, devout);
# Line 289 | Line 289 | reply_error(                   /* what should we do here? */
289   static void
290   getstate(void)                          /* get driver state variables */
291   {
292 <        fread((char *)&comm_driver.pixaspect,
292 >        getbinary((char *)&comm_driver.pixaspect,
293                          sizeof(comm_driver.pixaspect), 1, devin);
294          comm_driver.xsiz = getw(devin);
295          comm_driver.ysiz = getw(devin);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines