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.6 by gregl, Fri Dec 26 15:33:12 1997 UTC vs.
Revision 3.8 by gregl, Fri Dec 26 21:56:43 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 567 | Line 566 | register XKeyPressedEvent  *ekey;
566                  inpresflags |= DFL(DC_RESUME);
567                  return;
568          case CTRL('R'):                 /* redraw screen */
569 +                if (nxtzmax > FTINY) {
570 +                        curzmax = nxtzmax;
571 +                        nxtzmax = 0.;
572 +                }
573                  glClear(GL_DEPTH_BUFFER_BIT);
574                  qtRedraw(0, 0, odev.hres, odev.vres);
575                  return;
576          case CTRL('L'):                 /* refresh from server */
577                  if (inpresflags & DFL(DC_REDRAW))
578                          return;
579 +                if (nxtzmax > FTINY) {
580 +                        curzmax = nxtzmax;
581 +                        nxtzmax = 0.;
582 +                }
583                  glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
584                  draw_grids();
585                  glFlush();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines