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

Comparing ray/src/hd/rhd_glx.c (file contents):
Revision 3.4 by gregl, Fri Dec 26 14:12:37 1997 UTC vs.
Revision 3.6 by gregl, Fri Dec 26 15:33:12 1997 UTC

# Line 284 | Line 284 | double rad;
284                  else
285                          apexh = 1. - ip[2]/(curzmax*DEPTHFACT);
286          }
287 <                                        /* find closest cone match */
287 >        rad *= 1.25;                    /* find conservative cone match */
288          for (ci = 0; ci < MAXCONE-1; ci++)
289                  if (cone[ci].rad >= rad)
290                          break;
# Line 627 | Line 627 | static
627   resizewindow(ersz)                      /* resize window */
628   register XConfigureEvent  *ersz;
629   {
630 +        glViewport(0, 0, ersz->width, ersz->height);
631 +
632          if (ersz->width == odev.hres && ersz->height == odev.vres)
633                  return;
634  
# Line 635 | Line 637 | register XConfigureEvent  *ersz;
637  
638          odev.v.horiz = 2.*180./PI * atan(0.5/VIEWDIST*pwidth*odev.hres);
639          odev.v.vert = 2.*180./PI * atan(0.5/VIEWDIST*pheight*odev.vres);
638
639        glViewport(0, 0, odev.hres, odev.vres);
640  
641          inpresflags |= DFL(DC_SETVIEW);
642   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines