2
#include <grass/display.h>
3
#include <grass/raster.h>
4
#include "local_proto.h"
5
#include <grass/glocale.h>
7
int zoomwindow(struct Cell_head *window, int quiet, double magnify)
9
int screen_x, screen_y, button;
15
fprintf(stderr, _("\n\nButtons:\n"));
16
fprintf(stderr, _("Left: Zoom menu\n"));
17
fprintf(stderr, _("Middle: Pan\n"));
18
fprintf(stderr, _("Right: Quit menu\n"));
22
R_get_location_with_pointer(&screen_x, &screen_y, &button);
26
make_window_box(window, magnify, 1, 0);
29
else if (button == 2) {
31
pan_window(window, screen_x, screen_y);
33
else if (button == 3) {
40
fprintf(stderr, _("This region now saved as current region.\n\n"));
42
_("Note: run 'd.erase' for the new region to affect the graphics.\n"));