--- ray/src/px/glimage.c 1991/04/18 14:35:08 1.3 +++ ray/src/px/glimage.c 1991/11/13 11:08:36 2.1 @@ -16,7 +16,9 @@ static char SCCSid[] = "$SunId$ LBL"; #include "color.h" +#include "resolu.h" + main(argc, argv) /* print a picture */ int argc; char *argv[]; @@ -44,7 +46,7 @@ char *argv[]; exit(1); } /* get picture dimensions */ - if (fgetresolu(&xres, &yres, input) != (YMAJOR|YDECR)) { + if (fgetresolu(&xres, &yres, input) < 0) { fprintf(stderr, "%s: bad picture size\n", fname); exit(1); }