--- ray/src/px/ximage.c 1989/10/20 20:36:10 1.12 +++ ray/src/px/ximage.c 1989/10/23 09:10:22 1.13 @@ -144,10 +144,12 @@ char *argv[]; if (fgetresolu(&xmax, &ymax, fin) != (YMAJOR|YDECR)) quiterr("bad picture size"); /* set view parameters */ - if (gotview) + if (gotview) { + ourview.hresolu = xmax; + ourview.vresolu = ymax; if (setview(&ourview) != NULL) gotview = 0; - + } if ((scanline = (COLR *)malloc(xmax*sizeof(COLR))) == NULL) quiterr("out of memory");