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.35 by greg, Fri Dec 12 22:05:38 2008 UTC vs.
Revision 2.36 by greg, Wed Mar 2 17:24:55 2011 UTC

# Line 326 | Line 326 | int  px,
326   int  py
327   )
328   {
329 <        register int  x, y;
329 >        int  x, y;
330  
331          if (rp->rt & YMAJOR) {
332                  x = px;
# Line 352 | Line 352 | double  lx,
352   double  ly
353   )
354   {
355 <        register int  x, y;
355 >        int  x, y;
356  
357 <        x = lx * rp->xr;
358 <        y = ly * rp->yr;
357 >        x = (lx >= 0.0) ? (int)(lx * rp->xr) : -(int)(-lx * rp->xr);
358 >        y = (ly >= 0.0) ? (int)(ly * rp->yr) : -(int)(-ly * rp->yr);
359          if (rp->rt & XDECR)
360                  x = rp->xr-1 - x;
361          if (rp->rt & YDECR)
# Line 498 | Line 498 | VIEW  *vp
498   )
499   {
500          static char  vwstr[128];
501 <        register char  *cp = vwstr;
501 >        char  *cp = vwstr;
502  
503          *cp = '\0';
504          if (vp->type != stdview.type) {
# Line 557 | Line 557 | char  *s
557   {
558          static char  *altname[]={NULL,VIEWSTR,"rpict","rview","rvu","rpiece","pinterp",NULL};
559          extern char  *progname;
560 <        register char  *cp;
561 <        register char  **an;
560 >        char  *cp;
561 >        char  **an;
562                                          /* add program name to list */
563          if (altname[0] == NULL) {
564                  for (cp = progname; *cp; cp++)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines