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

Comparing ray/src/px/ra_rgbe.c (file contents):
Revision 2.2 by greg, Fri Jan 3 22:58:08 1992 UTC vs.
Revision 2.3 by greg, Mon Sep 21 12:15:13 1992 UTC

# Line 9 | Line 9 | static char SCCSid[] = "$SunId$ LBL";
9   */
10  
11   #include  <stdio.h>
12 + #ifdef MSDOS
13 + #include  <fcntl.h>
14 + #endif
15  
16   #include  "color.h"
17   #include  "resolu.h"
18  
19 + extern char  *malloc();
20 +
21   int  bradj = 0;                         /* brightness adjustment */
22  
23   int  doflat = 1;                        /* produce flat file */
# Line 25 | Line 30 | int  argc;
30   char  *argv[];
31   {
32          int  i;
33 <        
33 > #ifdef MSDOS
34 >        extern int  _fmode;
35 >        _fmode = O_BINARY;
36 >        setmode(fileno(stdin), O_BINARY);
37 >        setmode(fileno(stdout), O_BINARY);
38 > #endif
39          progname = argv[0];
40  
41          for (i = 1; i < argc; i++)
# Line 81 | Line 91 | transfer()             /* transfer Radiance picture */
91   {
92          extern double   pow();
93          int     order;
94 <        int     xmax, ymax;
94 >        int     xmax, ymax;
95          COLR    *scanin;
96          register int    x;
97          int     y;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines