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.4 by gregl, Fri Nov 21 16:10:17 1997 UTC vs.
Revision 3.8 by gregl, Thu Dec 4 10:51:37 1997 UTC

# Line 17 | Line 17 | HOLO   *hdlist[HDMAX+1];       /* global holodeck list */
17  
18   int     imm_mode = 0;           /* bundles are being delivered immediately */
19  
20 VIEW    dvw;                    /* our current display view */
21
20   char    *progname;              /* global argv[0] */
21  
22   #define RDY_SRV 01
# Line 46 | Line 44 | char   *argv[];
44                          if (inp & DEV_SHUTDOWN)
45                                  serv_request(DR_SHUTDOWN, 0, NULL);
46                          if (inp & DEV_REDRAW) {
49                                beam_sync();
47                                  imm_mode = 1;   /* preempt updates */
48 +                                beam_sync();
49                          }
50                          if (inp & DEV_WAIT)
51                                  pause = 1;
# Line 160 | Line 158 | VIEW   *v;
158   {
159          char    *err;
160  
161 <        if ((err = setview(v)) != NULL)
162 <                error(INTERNAL, err);
163 <        dev_view(v);                    /* update display driver */
164 <        beam_view(&dvw, v);             /* update beam list */
165 <        copystruct(&dvw, v);            /* record new view */
161 >        do {
162 >                if ((err = setview(v)) != NULL)
163 >                        error(INTERNAL, err);
164 >                dev_view(v);            /* update display driver */
165 >                dev_flush();            /* update screen */
166 >        } while (!beam_view(v));        /* update beam list */
167   }
168  
169  
# Line 205 | Line 204 | serv_result()                  /* get next server result and process
204          case DS_STARTIMM:
205          case DS_ENDIMM:
206                  imm_mode = msg.type==DS_STARTIMM;
207 +                if (msg.type == DS_ENDIMM)
208 +                        dev_flush();            /* update display NOW */
209                  /* fall through */
210          case DS_ACKNOW:
211          case DS_SHUTDOWN:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines