summaryrefslogtreecommitdiff
path: root/Tachometer.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2004-12-31 16:05:19 +0000
committerEric S. Raymond <esr@thyrsus.com>2004-12-31 16:05:19 +0000
commitf1b85eed9682b7b20b438a3ece88ba0969021068 (patch)
treee42e7535827a3b336f2709fc2970e55864e5cbfd /Tachometer.c
parentaaff158085e456c69ba65c7c40574eecbc16ff9a (diff)
downloadgpsd-f1b85eed9682b7b20b438a3ece88ba0969021068.tar.gz
More fluff removal.
Diffstat (limited to 'Tachometer.c')
-rw-r--r--Tachometer.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/Tachometer.c b/Tachometer.c
index aebedba0..3e55386d 100644
--- a/Tachometer.c
+++ b/Tachometer.c
@@ -18,17 +18,14 @@
#include <math.h>
#include "config.h" /* must define UNUSED */
+#define D2R (3.14159265358979323846 / 180.0) /* Degrees to radians */
+
/****************************************************************
*
* Full class record constant
*
****************************************************************/
-#if ! defined(PI)
-#define PI 3.1415927
-#endif
-#define D2R (PI / 180.0)
-
typedef struct {
unsigned char digit[7];
} DigitRec;
@@ -346,8 +343,6 @@ static void DrawTachometer(TachometerWidget w)
if ((center_x==0) || (center_y==0) || (radius_x<=0) || (radius_y<=0))
return; /* Can't draw anything -- no room */
- /* Draw meter shape */
-
/* Big circle */
FastFillCircle(XtDisplay(w), XtWindow(w), w->tachometer.circle_GC,
center_x, center_y, radius_x, radius_y);