1.1 --- a/GUI/SensorGadget.cs Sat Nov 13 20:20:03 2010 +0000
1.2 +++ b/GUI/SensorGadget.cs Tue Nov 16 21:48:26 2010 +0000
1.3 @@ -379,8 +379,8 @@
1.4 new Rectangle(back.Width - r, back.Height - b, r, b), u);
1.5 }
1.6
1.7 - private void DrawProgress(Graphics g, int x, int y, int width, int height,
1.8 - float progress)
1.9 + private void DrawProgress(Graphics g, float x, float y,
1.10 + float width, float height, float progress)
1.11 {
1.12 g.DrawImage(barBack,
1.13 new RectangleF(x + width * progress, y, width * (1 - progress), height),
1.14 @@ -474,7 +474,8 @@
1.15 rightMargin;
1.16 } else {
1.17 DrawProgress(g, w - progressWidth - rightMargin,
1.18 - y + 4, progressWidth, 6, 0.01f * sensor.Value.Value);
1.19 + y + 0.35f * sensorLineHeight, progressWidth,
1.20 + 0.6f * sensorLineHeight, 0.01f * sensor.Value.Value);
1.21
1.22 remainingWidth = w - progressWidth - rightMargin;
1.23 }