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

Comparing ray/src/hd/rhpict.c (file contents):
Revision 3.21 by greg, Mon Oct 21 18:19:32 2019 UTC vs.
Revision 3.25 by greg, Tue Jul 1 19:40:35 2025 UTC

# Line 6 | Line 6 | static const char      RCSid[] = "$Id$";
6   */
7  
8   #include <string.h>
9
9   #include "platform.h"
10   #include "rterror.h"
11   #include "rholo.h"
12  
14 char    *progname;              /* our program name */
13   char    *hdkfile;               /* holodeck file name */
14   char    gargc;                  /* global argc */
15   char    **gargv;                /* global argv */
# Line 50 | Line 48 | char   *argv[]
48          int     i, rval;
49  
50          gargc = argc; gargv = argv;
51 <        progname = argv[0];                     /* get arguments */
51 >        fixargv0(argv[0]);                      /* get arguments */
52          for (i = 1; i < argc && argv[i][0] == '-'; i++) {
53                  rval = getviewopt(&myview, argc-i, argv+i);
54                  if (rval >= 0) {                /* view option */
# Line 230 | Line 228 | startpicture(          /* initialize picture for rendering & o
228          fputs(VIEWSTR, stdout);
229          fprintview(&myview, stdout);
230          fputc('\n', stdout);
231 <        if ((pa < 0.99) | (pa > 1.01))
231 >        if ((pa < 0.999) | (pa > 1.001))
232                  fputaspect(pa, stdout);
233          if ((expval < 0.99) | (expval > 1.01))
234                  fputexpos(expval, stdout);
# Line 317 | Line 315 | initialize(void)                       /* initialize holodeck and buffers
315  
316  
317   void
318 < eputs(s)                        /* put error message to stderr */
321 < char  *s;
318 > eputs(const char *s)            /* put error message to stderr */
319   {
320          static int  midline = 0;
321  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines