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.31 by gwlarson, Wed Aug 19 18:23:56 1998 UTC vs.
Revision 3.33 by gwlarson, Tue Oct 6 18:09:49 1998 UTC

# Line 88 | Line 88 | char   *argv[];
88                                  printview();
89                          if (inp & DFL(DC_LASTVIEW))
90                                  new_view(NULL);
91                        if (inp & DFL(DC_RESUME)) {
92                                serv_request(DR_NOOP, 0, NULL);
93                                pause = 0;
94                        }
95                        if (inp & DFL(DC_PAUSE))
96                                pause = 1;
97                        if (inp & DFL(DC_REDRAW))
98                                imm_mode = beam_sync(1) > 0;
91                          if (inp & DFL(DC_KILL)) {
92                                  serv_request(DR_KILL, 0, NULL);
93                                  pause = 0;
# Line 106 | Line 98 | char   *argv[];
98                                  serv_request(DR_RESTART, 0, NULL);
99                                  pause = 0;
100                          }
101 +                        if (inp & DFL(DC_RESUME)) {
102 +                                serv_request(DR_NOOP, 0, NULL);
103 +                                pause = 0;
104 +                        }
105 +                        if (inp & DFL(DC_PAUSE))
106 +                                pause = 1;
107 +                        if (inp & DFL(DC_REDRAW))
108 +                                imm_mode = beam_sync(1) > 0;
109                          if (inp & DFL(DC_QUIT))
110                                  serv_request(DR_SHUTDOWN, 0, NULL);
111                  }
# Line 457 | Line 457 | char   *p;
457   {
458          MSGHEAD msg;
459          int     m;
460 +                                /* consistency checks */
461 + #ifdef DEBUG
462 +        if (nbytes < 0 || nbytes > 0 & p == NULL)
463 +                error(CONSISTENCY, "bad buffer handed to serv_request");
464 + #endif
465                                  /* get server's attention for big request */
466          if (nbytes >= BIGREQSIZ-sizeof(MSGHEAD)) {
467                  serv_request(DR_ATTEN, 0, NULL);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines