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.4 by gregl, Fri Nov 21 13:35:58 1997 UTC vs.
Revision 3.8 by gregl, Tue Nov 25 11:21:50 1997 UTC

# Line 212 | Line 212 | int
212   dev_input()                     /* get X11 input */
213   {
214          inpresflags = 0;
215 +
216          do
217                  getevent();
218  
# Line 431 | Line 432 | XButtonPressedEvent    *ebut;
432          unsigned int    statemask;
433  
434          qtMinNodesiz = 16;              /* for quicker update */
434        qtCompost(50);
435  
436          do {
437                  if (!XQueryPointer(ourdisplay, gwind, &rootw, &childw,
# Line 451 | Line 451 | XButtonPressedEvent    *ebut;
451                  wx = levptr(XButtonReleasedEvent)->x;
452                  wy = levptr(XButtonReleasedEvent)->y;
453                  moveview(wx, odev.vres-1-wy, MOVDIR(whichbutton));
454 +                dev_flush();
455          }
456  
457          qtMinNodesiz = oldnodesiz;      /* restore quadtree resolution */
# Line 474 | Line 475 | register XKeyPressedEvent  *ekey;
475          case 'H':                       /* turn off height motion lock */
476                  headlocked = 0;
477                  return;
478 <        case CTRL('Z'):
478 >        case CTRL('S'):
479          case 'p':                       /* pause computation */
480                  inpresflags |= DEV_WAIT;
481                  return;
482 +        case 'v':                       /* spit out view */
483 +                fputs(VIEWSTR, stderr);
484 +                fprintview(&odev.v, stderr);
485 +                fputc('\n', stderr);
486 +                return;
487 +        case CTRL('Q'):
488          case '\n':
489 <        case '\r':                      /* release */
489 >        case '\r':                      /* resume computation */
490 >                inpresflags |= DEV_RESUME;
491                  return;
492 <        case CTRL('R'):                 /* redraw */
492 >        case CTRL('R'):                 /* redraw screen */
493                  if (ncolors > 0)
494                          new_ctab(ncolors);
495                  qtRedraw(0, 0, odev.hres, odev.vres);
496 +                return;
497 +        case CTRL('L'):                 /* refresh from server */
498 +                if (inpresflags & DEV_REDRAW)
499 +                        return;
500 +                XClearWindow(ourdisplay, gwind);
501 +                XFlush(ourdisplay);
502 +                qtCompost(100);                 /* unload the old tree */
503 +                if (ncolors > 0)
504 +                        new_ctab(ncolors);
505 +                inpresflags |= DEV_REDRAW;      /* resend values from server */
506                  return;
507          case CTRL('D'):
508          case 'Q':

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines