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

Comparing ray/src/px/x11image.c (file contents):
Revision 2.3 by greg, Mon Dec 23 23:20:09 1991 UTC vs.
Revision 2.5 by greg, Tue May 19 14:22:46 1992 UTC

# Line 192 | Line 192 | userr:
192   headline(s)             /* get relevant info from header */
193   char  *s;
194   {
195        static char  *altname[] = {"rview","rpict","pinterp",VIEWSTR,NULL};
196        register char  **an;
195          char  fmt[32];
196  
197          if (isexpos(s))
# Line 201 | Line 199 | char  *s;
199          else if (isformat(s)) {
200                  formatval(fmt, s);
201                  wrongformat = strcmp(fmt, COLRFMT);
202 <        } else
203 <                for (an = altname; *an != NULL; an++)
206 <                        if (!strncmp(*an, s, strlen(*an))) {
207 <                                if (sscanview(&ourview, s+strlen(*an)) > 0)
208 <                                        gotview++;
209 <                                return;
210 <                        }
202 >        } else if (isview(s) && sscanview(&ourview, s) > 0)
203 >                gotview++;
204   }
205  
206  
# Line 729 | Line 722 | getfull()                      /* get full (24-bit) data */
722                          shiftcolrs(scanline, xmax, scale);
723                  colrs_gambs(scanline, xmax);
724                  add2icon(y, scanline);
725 <                for (x = 0; x < xmax; x++) {
733 <                        *dp++ = scanline[x][RED];
734 <                        *dp++ = scanline[x][GRN];
725 >                for (x = 0; x < xmax; x++) {    /* BGR byte ordering */
726                          *dp++ = scanline[x][BLU];
727 +                        *dp++ = scanline[x][GRN];
728 +                        *dp++ = scanline[x][RED];
729                  }
730          }
731   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines