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.5 by gregl, Fri Dec 26 14:46:21 1997 UTC vs.
Revision 3.7 by gregl, Fri Dec 26 16:50:03 1997 UTC

# Line 161 | Line 161 | char  *id;
161                                          /* map the window */
162          XMapWindow(ourdisplay, gwind);
163          dev_input();                    /* sets size and view angles */
164        glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
164                                          /* allocate our leaf pile */
165          if (!qtAllocLeaves(2 * DisplayWidth(ourdisplay,ourscreen) *
166                          DisplayHeight(ourdisplay,ourscreen) /
# Line 627 | Line 626 | static
626   resizewindow(ersz)                      /* resize window */
627   register XConfigureEvent  *ersz;
628   {
629 +        glViewport(0, 0, ersz->width, ersz->height);
630 +
631          if (ersz->width == odev.hres && ersz->height == odev.vres)
632                  return;
633  
# Line 635 | Line 636 | register XConfigureEvent  *ersz;
636  
637          odev.v.horiz = 2.*180./PI * atan(0.5/VIEWDIST*pwidth*odev.hres);
638          odev.v.vert = 2.*180./PI * atan(0.5/VIEWDIST*pheight*odev.vres);
638
639        glViewport(0, 0, odev.hres, odev.vres);
639  
640          inpresflags |= DFL(DC_SETVIEW);
641   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines