--- ray/src/rt/rpict.c 1990/01/19 00:00:19 1.17 +++ ray/src/rt/rpict.c 1990/03/01 08:19:01 1.19 @@ -18,7 +18,7 @@ static char SCCSid[] = "$SunId$ LBL"; #else #include #endif -#include +#include #include "view.h" @@ -149,7 +149,7 @@ char *zfile, *oldfile; /* compute scanlines */ for (ypos -= ystep; ypos > -ystep; ypos -= ystep) { /* record progress */ - pctdone = 100.0*(vresolu-ypos-ystep)/vresolu; + pctdone = 100.0*(vresolu-1-ypos-ystep)/vresolu; /* bottom adjust? */ if (ypos < 0) { ystep += ypos;