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

Comparing ray/src/hd/rhd_x11.c (file contents):
Revision 3.6 by gregl, Fri Nov 21 16:10:17 1997 UTC vs.
Revision 3.7 by gregl, Mon Nov 24 15:17:06 1997 UTC

# Line 432 | Line 432 | XButtonPressedEvent    *ebut;
432          unsigned int    statemask;
433  
434          qtMinNodesiz = 16;              /* for quicker update */
435        qtCompost(50);
435  
436          do {
437                  if (!XQueryPointer(ourdisplay, gwind, &rootw, &childw,
# Line 479 | Line 478 | register XKeyPressedEvent  *ekey;
478          case 'p':                       /* pause computation */
479                  inpresflags |= DEV_WAIT;
480                  return;
481 +        case 'v':                       /* spit out view */
482 +                fputs(VIEWSTR, stderr);
483 +                fprintview(&odev.v, stderr);
484 +                fputc('\n', stderr);
485 +                return;
486          case CTRL('Q'):
487          case '\n':
488          case '\r':                      /* resume computation */
489                  inpresflags |= DEV_RESUME;
490                  return;
491 <        case CTRL('R'):                 /* redraw */
491 >        case CTRL('R'):                 /* redraw screen */
492 >                if (ncolors > 0)
493 >                        new_ctab(ncolors);
494 >                qtRedraw(0, 0, odev.hres, odev.vres);
495 >                return;
496 >        case CTRL('L'):                 /* refresh from server */
497 >                XClearWindow(ourdisplay, gwind);
498                  qtCompost(100);                 /* unload the old tree */
499                  if (ncolors > 0)
500                          new_ctab(ncolors);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines