diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2004-12-31 16:05:19 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2004-12-31 16:05:19 +0000 |
commit | f1b85eed9682b7b20b438a3ece88ba0969021068 (patch) | |
tree | e42e7535827a3b336f2709fc2970e55864e5cbfd /Tachometer.c | |
parent | aaff158085e456c69ba65c7c40574eecbc16ff9a (diff) | |
download | gpsd-f1b85eed9682b7b20b438a3ece88ba0969021068.tar.gz |
More fluff removal.
Diffstat (limited to 'Tachometer.c')
-rw-r--r-- | Tachometer.c | 9 |
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); |