2
#include <grass/raster.h>
4
int get_win_w_mouse(float *top, float *bottom, float *left, float *right)
15
fprintf(stderr, "\nButtons:\n");
16
fprintf(stderr, "Left: Establish a corner\n");
17
fprintf(stderr, "Right: Accept window\n");
25
R_get_location_with_box(l, b, &r, &t, &button);
30
} while (button != 3);
43
*bottom = 100. - 100. * (b - st) / (sb - st);
44
*top = 100. - 100. * (t - st) / (sb - st);
45
*left = 100. * (l - sl) / (sr - sl);
46
*right = 100. * (r - sl) / (sr - sl);