summaryrefslogtreecommitdiff
path: root/Tachometer.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2004-10-04 18:58:59 +0000
committerEric S. Raymond <esr@thyrsus.com>2004-10-04 18:58:59 +0000
commit365e6920239bff9a4bc1eab1b18702fe3f7a8ef2 (patch)
tree5811884e6378c7a0d83ce43ad05cbf9000738dc2 /Tachometer.c
parenta11ee6bbbf2cad8948c7cb388fe09fdf1fa96046 (diff)
downloadgpsd-365e6920239bff9a4bc1eab1b18702fe3f7a8ef2.tar.gz
More code-polishing.
Diffstat (limited to 'Tachometer.c')
-rw-r--r--Tachometer.c18
1 files changed, 4 insertions, 14 deletions
diff --git a/Tachometer.c b/Tachometer.c
index c4d17557..0b030790 100644
--- a/Tachometer.c
+++ b/Tachometer.c
@@ -170,17 +170,9 @@ WidgetClass tachometerWidgetClass = (WidgetClass)&tachometerClassRec;
*
****************************************************************/
-static void DrawTachometer();
-static void FastFillCircle();
-static void GetneedleGC();
-static void GetscaleGC();
-static void GetbackgroundGC();
-static void DrawGauge();
-static void DrawNeedle();
-static void DrawNumbers();
-static void DrawSingleNumber();
-static void DrawLabelString();
-static void MoveNeedle();
+static void DrawTachometer(), FastFillCircle(), GetneedleGC();
+static void GetscaleGC(), GetbackgroundGC(), DrawGauge(), DrawNeedle();
+static void DrawNumbers(), DrawSingleNumber(), DrawLabelString(), MoveNeedle();
static void DrawTachometer(TachometerWidget w)
{
@@ -356,14 +348,12 @@ static void DrawNumbers(
static void DrawSingleNumber(TachometerWidget w, int which, Cardinal x, Cardinal y)
{
XSegment segments[7];
- Cardinal nsegments;
+ Cardinal nsegments, width, height;
unsigned char count;
- Cardinal width, height;
GC gc;
width = (w->core.width / 2) - w->tachometer.internal_border;
height = (w->core.height / 2) - w->tachometer.internal_border;
-
if ((width <= 0) || (height <= 0))
return;