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

Comparing ray/src/common/image.c (file contents):
Revision 2.17 by greg, Tue Feb 25 02:47:21 2003 UTC vs.
Revision 2.21 by greg, Sun Sep 7 05:32:02 2003 UTC

# Line 271 | Line 271 | FVECT  p;
271  
272   void
273   pix2loc(loc, rp, px, py)        /* compute image location from pixel pos. */
274 < FLOAT  loc[2];
274 > RREAL  loc[2];
275   register RESOLU  *rp;
276   int  px, py;
277   {
# Line 394 | Line 394 | register char  *s;
394          int  na;
395          int  nvopts = 0;
396  
397 +        while (*s == ' ')
398 +                s++;
399          if (*s != '-')
400                  s = sskip2(s,1);
401          while (*s) {
402                  ac = 0;
403                  do {
404 <                        av[ac++] = s;
404 >                        if (ac || *s == '-')
405 >                                av[ac++] = s;
406                          while (*s && *s != ' ')
407                                  s++;
408                          while (*s == ' ')

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines