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.8 by gregl, Tue Nov 25 11:21:50 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 452 | 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 479 | Line 479 | register XKeyPressedEvent  *ekey;
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':                      /* 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);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines