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

Comparing ray/src/px/pcwarp.c (file contents):
Revision 3.5 by greg, Mon Nov 10 19:08:19 2008 UTC vs.
Revision 3.8 by greg, Fri Jun 6 19:11:21 2025 UTC

# Line 5 | Line 5 | static const char      RCSid[] = "$Id$";
5   * Warp colors in Radiance picture to correct for input/output changes.
6   */
7  
8 < #include <stdio.h>
9 <
8 > #include "paths.h"
9 > #include "rtio.h"
10   #include "resolu.h"
11   #include "color.h"
12   #include "warp3d.h"
13  
14 char    *progname;                      /* global argv[0] */
15
14   FILE    *infp = NULL;                   /* input stream */
15   int     xres, yres;                     /* input picture resolution */
16  
# Line 30 | Line 28 | main(
28          char    *argv[]
29   )
30   {
31 <        static char     picfmt[LPICFMT+1] = PICFMT;
31 >        static char     picfmt[MAXFMTLEN] = PICFMT;
32          int     cwflags = 0;
33          int     rval;
34          int     i;
35  
36 <        progname = argv[0];
36 >        fixargv0(argv[0]);
37          infp = stdin;
38                                          /* get options */
39          for (i = 1; i < argc && argv[i][0] == '-'; i++)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines