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.37 by greg, Sat Oct 27 03:01:21 2012 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 = (int)(lx*rp->xr + .5 - (lx < 0.0));
358 >        y = (int)(ly*rp->yr + .5 - (ly < 0.0));
359 >
360          if (rp->rt & XDECR)
361                  x = rp->xr-1 - x;
362          if (rp->rt & YDECR)
# Line 498 | Line 499 | VIEW  *vp
499   )
500   {
501          static char  vwstr[128];
502 <        register char  *cp = vwstr;
502 >        char  *cp = vwstr;
503  
504          *cp = '\0';
505          if (vp->type != stdview.type) {
# Line 557 | Line 558 | char  *s
558   {
559          static char  *altname[]={NULL,VIEWSTR,"rpict","rview","rvu","rpiece","pinterp",NULL};
560          extern char  *progname;
561 <        register char  *cp;
562 <        register char  **an;
561 >        char  *cp;
562 >        char  **an;
563                                          /* add program name to list */
564          if (altname[0] == NULL) {
565                  for (cp = progname; *cp; cp++)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines