ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/rpict.c
(Generate patch)

Comparing ray/src/rt/rpict.c (file contents):
Revision 1.17 by greg, Fri Jan 19 00:00:19 1990 UTC vs.
Revision 1.19 by greg, Thu Mar 1 08:19:01 1990 UTC

# Line 18 | Line 18 | static char SCCSid[] = "$SunId$ LBL";
18   #else
19   #include  <signal.h>
20   #endif
21 < #include  <sys/fcntl.h>
21 > #include  <fcntl.h>
22  
23   #include  "view.h"
24  
# Line 149 | Line 149 | char  *zfile, *oldfile;
149                                                  /* compute scanlines */
150          for (ypos -= ystep; ypos > -ystep; ypos -= ystep) {
151                                                          /* record progress */
152 <                pctdone = 100.0*(vresolu-ypos-ystep)/vresolu;
152 >                pctdone = 100.0*(vresolu-1-ypos-ystep)/vresolu;
153                                                          /* bottom adjust? */
154                  if (ypos < 0) {
155                          ystep += ypos;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines