~ubuntu-branches/ubuntu/precise/grass/precise

« back to all changes in this revision

Viewing changes to imagery/i.ortho.photo/photo.2image/cellhd.c

  • Committer: Bazaar Package Importer
  • Author(s): Francesco Paolo Lovergine
  • Date: 2011-04-13 17:08:41 UTC
  • mfrom: (8.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20110413170841-ss1t9bic0d0uq0gz
Tags: 6.4.1-1
* New upstream version.
* Now build-dep on libjpeg-dev and current libreadline6-dev.
* Removed patch swig: obsolete.
* Policy bumped to 3.9.2, without changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#include "globals.h"
2
 
 
3
 
int Outline_cellhd(View * view, struct Cell_head *cellhd)
4
 
{
5
 
    int row, col;
6
 
    int top, bottom, left, right;
7
 
 
8
 
    row = northing_to_row(&view->cell.head, cellhd->north) + .5;
9
 
    top = row_to_view(view, row);
10
 
 
11
 
    col = easting_to_col(&view->cell.head, cellhd->west) + .5;
12
 
    left = col_to_view(view, col);
13
 
 
14
 
    row = northing_to_row(&view->cell.head, cellhd->south) + .5;
15
 
    bottom = row_to_view(view, row);
16
 
 
17
 
    col = easting_to_col(&view->cell.head, cellhd->east) + .5;
18
 
    right = col_to_view(view, col);
19
 
 
20
 
    Outline_box(top, bottom, left, right);
21
 
 
22
 
    return 0;
23
 
}