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.33 by gwlarson, Tue Oct 6 18:09:49 1998 UTC vs.
Revision 3.34 by gwlarson, Thu Nov 5 14:27:02 1998 UTC

# Line 109 | Line 109 | char   *argv[];
109                          if (inp & DFL(DC_QUIT))
110                                  serv_request(DR_SHUTDOWN, 0, NULL);
111                  }
112 <                if (rdy & RDY_SIN)              /* user input from sstdin */
112 >                if (rdy & RDY_SIN && !imm_mode) /* user input from sstdin */
113                          switch (usr_input()) {
114                          case DC_PAUSE:
115                                  pause = 1;
# Line 289 | Line 289 | again:
289                          }
290                          copystruct(v, viewhist + ((nhist-1)%VIEWHISTLEN));
291                          goto again;
292 <                }
293 <        beam_sync(0);           /* update server */
292 >                }      
293 >                                /* update server */
294 >        imm_mode = beam_sync(0) > 0;
295                                  /* record new view */
296          if (v < viewhist || v >= viewhist+VIEWHISTLEN) {
297                  copystruct(viewhist + (nhist%VIEWHISTLEN), v);
# Line 428 | Line 429 | serv_result()                  /* get next server result and process
429                          tmodesw = tnow;
430                  }
431   #endif
432 <                imm_mode = msg.type==DS_STARTIMM;
432 >                if (!(imm_mode = msg.type==DS_STARTIMM))
433 >                        dev_flush();
434                  goto noargs;
435          case DS_ACKNOW:
436          case DS_SHUTDOWN:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines