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

Comparing ray/src/px/mt160r.c (file contents):
Revision 1.9 by greg, Mon Nov 11 14:01:28 1991 UTC vs.
Revision 2.5 by greg, Mon Aug 2 14:39:10 1993 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1991 Regents of the University of California */
1 > /* Copyright (c) 1992 Regents of the University of California */
2  
3   #ifndef lint
4   static char SCCSid[] = "$SunId$ LBL";
# Line 11 | Line 11 | static char SCCSid[] = "$SunId$ LBL";
11   */
12  
13   #include  <stdio.h>
14 + #ifdef MSDOS
15 + #include  <fcntl.h>
16 + #endif
17  
18   #include  "color.h"
19   #include  "resolu.h"
20  
21 < #define  NCOLS          880             /* for wide carriage */
21 > #define  NCOLS          880             /* for wide carriage */
22  
23  
24   main(argc, argv)
# Line 24 | Line 27 | char  *argv[];
27   {
28          int  i;
29          int  status = 0;
30 <        
30 > #ifdef MSDOS
31 >        extern int  _fmode;
32 >        _fmode = O_BINARY;
33 >        setmode(fileno(stdin), O_BINARY);
34 >        setmode(fileno(stdout), O_BINARY);
35 > #endif
36          if (argc < 2)
37                  status += printp(NULL) == -1;
38          else
# Line 41 | Line 49 | char  *fname;
49          int  xres, yres;
50          COLR  scanline[NCOLS];
51          int  i;
52 <
52 >        
53          if (fname == NULL) {
54                  input = stdin;
55                  fname = "<stdin>";
# Line 110 | Line 118 | int  y;
118                  }
119                  putchar('\r');
120                  putchar('\n');
121 +                fflush(stdout);
122          }
123   }
124  
# Line 119 | Line 128 | COLR  clr;
128   register int  x;
129   {
130          static int  cerr[NCOLS];
131 <        static int  err, errp;
132 <        int  b;
131 >        static int  err;
132 >        int  b, errp;
133          register int  isblack;
134  
135          b = normbright(clr);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines