--- ray/src/rt/rview.c 1991/05/03 15:22:24 1.12 +++ ray/src/rt/rview.c 1991/05/03 15:43:32 1.13 @@ -18,6 +18,8 @@ static char SCCSid[] = "$SunId$ LBL"; #include +#include + #include VIEW ourview = STDVIEW; /* viewing parameters */ @@ -55,6 +57,7 @@ PNODE ptrunk; /* the base of our image */ RECT pframe; /* current frame boundaries */ int pdepth; /* image depth in current frame */ +static jmp_buf mainloop; /* longjmp back to main loop */ static char *reserve_mem = NULL; /* pre-allocated reserve memory */ #define RESERVE_AMT 8192 /* amount of memory to reserve */ @@ -117,7 +120,7 @@ rview() /* do a view */ devopen(devname); /* open device */ newimage(); /* set up image */ - + setjmp(mainloop); for ( ; ; ) { /* quit in command() */ while (hresolu <= 1<