--- ray/src/px/glimage.c 1991/04/18 14:35:08 1.3 +++ ray/src/px/glimage.c 2003/02/22 02:07:27 2.2 @@ -1,9 +1,6 @@ #ifndef lint -static char SCCSid[] = "$SunId$ LBL"; +static const char RCSid[] = "$Id: glimage.c,v 2.2 2003/02/22 02:07:27 greg Exp $"; #endif - -/* Copyright (c) 1986 Regents of the University of California */ - /* * glimage.c - program to dump pixel file NeWS window * @@ -14,9 +11,13 @@ static char SCCSid[] = "$SunId$ LBL"; #include +#include + #include "color.h" +#include "resolu.h" + main(argc, argv) /* print a picture */ int argc; char *argv[]; @@ -44,7 +45,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); }