1 |
< |
/* Copyright (c) 1992 Regents of the University of California */ |
1 |
> |
/* Copyright (c) 1996 Regents of the University of California */ |
2 |
|
|
3 |
|
#ifndef lint |
4 |
|
static char SCCSid[] = "$SunId$ LBL"; |
454 |
|
rad *= (y_r + x_c)/2.0; |
455 |
|
|
456 |
|
if (thresh > FTINY) { |
457 |
– |
xrad = CHECKRAD*THRESHRAD*rad/x_c + xbrad; |
458 |
– |
yrad = CHECKRAD*THRESHRAD*rad/y_r + ybrad; |
457 |
|
orad = CHECKRAD*THRESHRAD*rad + 1; |
458 |
+ |
xrad = orad/x_c + xbrad; |
459 |
+ |
yrad = orad/y_r + ybrad; |
460 |
|
obarsize = 2*orad + 1; |
461 |
|
} else { |
462 |
|
xrad = CHECKRAD*rad/x_c + 1; |
526 |
|
int ybot; |
527 |
|
register int c; |
528 |
|
/* average input scanlines */ |
529 |
< |
while (nextrow < r+orad && nextrow < nrows) { |
529 |
> |
while (nextrow <= r+orad && nextrow < nrows) { |
530 |
|
ybot = (long)nextrow*yres/nrows; |
531 |
|
for (c = 0; c < ncols; c++) { |
532 |
|
dobox(ctmp, (int)((long)c*xres/ncols),ybot, c,nextrow); |