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

Comparing ray/src/px/ra_t16.c (file contents):
Revision 2.10 by greg, Sat Dec 28 18:05:14 2019 UTC vs.
Revision 2.12 by greg, Sat Jun 7 05:09:46 2025 UTC

# Line 9 | Line 9 | static const char      RCSid[] = "$Id$";
9   */
10  
11   #include  <math.h>
12
12   #include  "platform.h"
13   #include  "rtio.h"
14   #include  "rtmisc.h"
# Line 31 | Line 30 | static const char      RCSid[] = "$Id$";
30  
31   double  gamcor = 2.2;                   /* gamma correction */
32   int  bradj = 0;                         /* brightness adjustment */
34 char  *progname;
33   char  msg[128];
34  
35   static int getint2(FILE *fp);
# Line 53 | Line 51 | main(int  argc, char  *argv[])
51          struct hdStruct  head;
52          int  reverse = 0;
53          int  i;
54 +        
55          SET_DEFAULT_BINARY();
56          SET_FILE_BINARY(stdin);
57          SET_FILE_BINARY(stdout);
58 <        progname = argv[0];
58 >        fixargv0(argv[0]);
59  
60          head.dataBits = 16;
61          for (i = 1; i < argc; i++)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines