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