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

Comparing ray/src/rt/rview.c (file contents):
Revision 2.12 by greg, Tue Sep 7 16:11:12 1993 UTC vs.
Revision 2.13 by greg, Wed Sep 14 18:35:21 1994 UTC

# Line 226 | Line 226 | again:
226                  getexposure(args);
227                  break;
228          case 's':                               /* set a parameter */
229 <                if (badcom("set"))
229 >                if (badcom("set")) {
230 > #ifdef  SIGTSTP
231 >                        if (!badcom("stop"))
232 >                                goto dostop;
233 > #endif
234                          goto commerr;
235 +                }
236                  setparam(args);
237                  break;
238          case 'n':                               /* new picture */
# Line 261 | Line 266 | again:
266                  break;
267          case 'r':                               /* rotate/repaint */
268                  if (badcom("rotate")) {
269 <                        if (badcom("repaint"))
270 <                                goto commerr;
269 >                        if (badcom("repaint")) {
270 >                                if (badcom("redraw"))
271 >                                        goto commerr;
272 >                                redraw();
273 >                                break;
274 >                        }
275                          getrepaint(args);
276                          break;
277                  }
278                  getrotate(args);
279                  break;
280          case 'p':                               /* pivot view */
281 <                if (badcom("pivot"))
282 <                        goto commerr;
281 >                if (badcom("pivot")) {
282 >                        if (badcom("pause"))
283 >                                goto commerr;
284 >                        goto again;
285 >                }
286                  getpivot(args);
287                  break;
288          case CTRL('R'):                         /* redraw */
# Line 288 | Line 300 | again:
300          case CTRL('C'):                         /* interrupt */
301                  goto again;
302   #ifdef  SIGTSTP
303 <        case CTRL('Z'):                         /* stop */
303 >        case CTRL('Z'):;                        /* stop */
304 > dostop:
305                  devclose();
306                  kill(0, SIGTSTP);
307                  /* pc stops here */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines