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

Comparing ray/src/px/pcomb.c (file contents):
Revision 2.40 by greg, Mon Oct 22 17:56:36 2007 UTC vs.
Revision 2.41 by greg, Mon Nov 5 23:40:26 2007 UTC

# Line 398 | Line 398 | combine(void)                  /* combine pictures */
398              advance();
399              varset(vypos, '=', (double)ypos);
400              for (xpos = 0; xpos < xres; xpos++) {
401 <                xscan = (long)xpos*xmax/xres;
401 >                xscan = (xpos+.5)*xmax/xres - .4999;
402                  varset(vxpos, '=', (double)xpos);
403                  eclock++;
404                  if (brtdef != NULL) {
# Line 437 | Line 437 | advance(void)                  /* read in data for next scanline */
437          register COLOR  *st;
438          register int    i, j;
439  
440 <        for (ytarget = (long)ypos*ymax/yres; yscan > ytarget; yscan--)
440 >        for (ytarget = (ypos+.5)*ymax/yres - .4999; yscan > ytarget; yscan--)
441                  for (i = 0; i < nfiles; i++) {
442                          st = input[i].scan[WINSIZ-1];
443                          for (j = WINSIZ-1; j > 0; j--)  /* rotate window */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines