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

Comparing ray/src/meta/meta2tga.c (file contents):
Revision 1.1 by greg, Sat Feb 22 02:07:26 2003 UTC vs.
Revision 1.3 by greg, Tue Sep 16 06:32:21 2003 UTC

# Line 65 | Line 65 | char  **argv;
65  
66   {
67   FILE  *fp;
68 #ifdef  UNIX
68   FILE  *popen();
70 #endif
69   char  comargs[200], command[300];
70  
73 #ifdef  CPM
74 fixargs("meta2tga", &argc, &argv);
75 #endif
76
71    fout = stdout;
72   progname = *argv++;
73   argc--;
74  
75   condonly = FALSE;
82 #ifdef  CPM
83 conditioned = TRUE;
84 #else
76   conditioned = FALSE;
86 #endif
77  
78   while (argc && **argv == '-')  {
79      switch (*(*argv+1))  {
90 #ifdef  UNIX
80         case 'c':
81            condonly = TRUE;
82            break;
83         case 'r':
84            conditioned = TRUE;
85            break;
97 #endif
86         case 'm':
87            minwidth = atoi(*++argv);
88            argc--;
# Line 142 | Line 130 | char  **argv;
130         argc--;
131         }
132      sprintf(command, XCOM, comargs);
145 #ifdef  UNIX
133      if (condonly)
134         return(system(command));
135      else  {
# Line 153 | Line 140 | char  **argv;
140         if (lineno)
141            nextpage();
142         }
156 #endif
143      }
144  
145   return(0);
# Line 175 | Line 161 | thispage()             /* rewind current file */
161   initfile()              /* initialize this file */
162   {
163      static int  filenum = 0;
164 +    /*
165      static unsigned char  cmap[24] = {255,255,255, 255,152,0, 0,188,0, 0,0,255,
166                          179,179,0, 255,0,255, 0,200,200, 0,0,0};
167 +     */
168 +    static unsigned char  cmap[24] = {0,0,0, 0,0,255, 0,188,0, 255,152,0,
169 +                        0,200,200, 255,0,255, 179,179,0, 255,255,255};
170      struct hdStruct  thead;
171      register int  i;
172  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines