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.38 by gwlarson, Sun Dec 20 20:39:31 1998 UTC vs.
Revision 3.40 by gwlarson, Thu Mar 4 10:14:52 1999 UTC

# Line 155 | Line 155 | disp_wait()                    /* wait for more input */
155          int     n;
156          register int    i;
157                                  /* see if we can avoid select call */
158 +        if (hdlist[0] == NULL)
159 +                return(RDY_SRV);        /* initialize first */
160          flgs = 0;               /* flag what's ready already */
161          if (imm_mode || stdin->_cnt > 0)
162                  flgs |= RDY_SRV;
# Line 269 | Line 271 | register VIEW  *v;
271          static VIEW     viewhist[VIEWHISTLEN];
272          static unsigned nhist;
273          VIEW    *dv;
274 <        int     i, res[2], *slist;
274 >        int     i, res[2];
275 >        int2    *slist;
276          char    *err;
277                                  /* restore previous view? */
278          if (v == NULL) {
# Line 502 | Line 505 | serv_result()                  /* get next server result and process
505                  break;
506          case DS_STARTIMM:
507          case DS_ENDIMM:
508 +                if (!(imm_mode = msg.type==DS_STARTIMM))
509 +                        dev_flush();
510   #ifdef DEBUG
511                  {
512                          time_t  tnow = time(NULL);
# Line 510 | Line 515 | serv_result()                  /* get next server result and process
515                          tmodesw = tnow;
516                  }
517   #endif
513                if (!(imm_mode = msg.type==DS_STARTIMM))
514                        dev_flush();
518                  goto noargs;
519          case DS_ACKNOW:
520          case DS_SHUTDOWN:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines