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

Comparing ray/src/hd/rhdisp.c (file contents):
Revision 3.13 by gregl, Thu Dec 11 16:45:58 1997 UTC vs.
Revision 3.15 by gregl, Mon Dec 15 20:43:48 1997 UTC

# Line 64 | Line 64 | char   *argv[];
64                                  printview();
65                          if (inp & DFL(DC_LASTVIEW))
66                                  new_view(NULL);
67                        if (inp & DFL(DC_PAUSE))
68                                pause = 1;
67                          if (inp & DFL(DC_RESUME)) {
68                                  serv_request(DR_NOOP, 0, NULL);
69                                  pause = 0;
70                          }
71 +                        if (inp & DFL(DC_PAUSE))
72 +                                pause = 1;
73                          if (inp & DFL(DC_REDRAW))
74                                  imm_mode = beam_sync() > 0;
75 +                        if (inp & DFL(DC_KILL)) {
76 +                                serv_request(DR_KILL, 0, NULL);
77 +                                pause = 0;
78 +                        }
79 +                        if (inp & DFL(DC_CLOBBER))
80 +                                serv_request(DR_CLOBBER, 0, NULL);
81 +                        if (inp & DFL(DC_RESTART)) {
82 +                                serv_request(DR_RESTART, 0, NULL);
83 +                                pause = 0;
84 +                        }
85                          if (inp & DFL(DC_QUIT))
86                                  serv_request(DR_SHUTDOWN, 0, NULL);
87                  }
# Line 82 | Line 92 | char   *argv[];
92                                  break;
93                          case DC_RESUME:
94                                  serv_request(DR_NOOP, 0, NULL);
95 +                                /* fall through */
96 +                        case DC_KILL:
97 +                        case DC_RESTART:
98                                  pause = 0;
99                                  break;
100                          }
# Line 275 | Line 288 | usr_input()                    /* get user input and process it */
288                  break;
289          case DC_REDRAW:                 /* redraw from server */
290                  imm_mode = beam_sync() > 0;
291 +                break;
292 +        case DC_KILL:                   /* kill rtrace process(es) */
293 +                serv_request(DR_KILL, 0, NULL);
294 +                break;
295 +        case DC_CLOBBER:                /* clobber holodeck */
296 +                serv_request(DR_CLOBBER, 0, NULL);
297 +                break;
298 +        case DC_RESTART:                /* restart rtrace */
299 +                serv_request(DR_RESTART, 0, NULL);
300                  break;
301          case DC_QUIT:                   /* quit request */
302                  serv_request(DR_SHUTDOWN, 0, NULL);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines