3
int Outline_cellhd(View * view, struct Cell_head *cellhd)
6
int top, bottom, left, right;
8
row = northing_to_row(&view->cell.head, cellhd->north) + .5;
9
top = row_to_view(view, row);
13
col = easting_to_col(&view->cell.head, cellhd->west) + .5;
14
left = col_to_view(view, col);
15
if (left < view->left)
18
row = northing_to_row(&view->cell.head, cellhd->south) + .5;
19
bottom = row_to_view(view, row);
20
if (bottom > view->bottom)
21
bottom = view->bottom;
23
col = easting_to_col(&view->cell.head, cellhd->east) + .5;
24
right = col_to_view(view, col);
25
if (right > view->right)
28
Outline_box(top, bottom, left, right);