2
#include "local_proto.h"
3
#include <grass/raster.h>
5
int display_title(View * view)
8
char left[100], center[100];
10
double magnification();
15
if (view->cell.configured) {
16
sprintf(center, "%s (mag %.1f)",
17
view->cell.name, magnification(view));
20
if (view == VIEW_MAP1) {
21
sprintf(left, "%s", G_location());
24
else if (view == VIEW_MAP1_ZOOM) {
25
title = VIEW_TITLE1_ZOOM;
28
if (view == VIEW_MAP2) {
29
sprintf(left, "%s", G_location());
32
else if (view == VIEW_MAP2_ZOOM) {
33
title = VIEW_TITLE2_ZOOM;
37
R_standard_color(WHITE);
38
size = title->nrows - 4;
39
R_text_size(size, size);
40
Text(left, title->top, title->bottom, title->left, title->right, 2);
42
R_standard_color(YELLOW);
43
Text(center, title->top, title->bottom,
44
(title->left + title->right - Text_width(center)) / 2,