-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathequal.c
40 lines (26 loc) · 895 Bytes
/
equal.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
-------------------------------------------------------------------------
OBJECT NAME: equal.c
FULL NAME: Equal Scaling
ENTRY POINTS: ToggleEqualScaling()
equalScaling()
STATIC FNS: none
DESCRIPTION: On Track plots, one would like lat and lon to cover the
same distance on the plot.
COPYRIGHT: University Corporation for Atmospheric Research, 2000-2022
-------------------------------------------------------------------------
*/
#include "define.h"
static int equalScales = 0;
/* -------------------------------------------------------------------- */
void ToggleEqualScaling(Widget w, XtPointer client, XtPointer call)
{
equalScales = !equalScales;
DrawMainWindow();
} /* END TOGGLEEQUALSCALING */
/* -------------------------------------------------------------------- */
bool equalScaling()
{
return(equalScales);
} /* END EQUALSCALING */
/* END EQUAL.C */