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.2 by gregl, Tue Nov 11 20:02:59 1997 UTC vs.
Revision 2.5 by greg, Thu Aug 18 00:52:48 2016 UTC

# Line 1 | Line 1
1 /* Copyright (c) 1989 Regents of the University of California */
2
1   #ifndef lint
2 < static char SCCSid[] = "$SunId$ LBL";
2 > static const char       RCSid[] = "$Id$";
3   #endif
6
4   /*
5   *  devmain.c - main for independent drivers.
6   *
7   *      Redefine your initialization routine to dinit.
11 *
12 *      10/25/89
8   */
9  
10 + #include "copyright.h"
11 +
12   #include "standard.h"
13  
14   #include "color.h"
# Line 69 | Line 66 | char   *argv[];
66   }
67  
68  
69 + void
70   quit(code)                              /* close device and exit */
71   int     code;
72   {
# Line 93 | 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 180 | Line 178 | register FILE  *fp;
178   }
179  
180  
181 + void
182   eputs(s)                                /* put string to stderr */
183   register char  *s;
184   {
# Line 201 | 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