fixed minor bug in viewer

This commit is contained in:
joxe 2009-04-25 10:04:38 +00:00
parent d8d7e9142d
commit 19a30284e5

View file

@ -27,7 +27,7 @@ public class ViewRSSI extends JPanel {
public void paint(Graphics g) {
int h = getHeight();
int w = getWidth();
g.clearRect(0, 0, 300, h);
g.clearRect(0, 0, w, h);
double factor = (h - 20.0) / RSSI_MAX_VALUE;
double sSpacing = (w - 15 ) / 80.0;
int sWidth = (int) (sSpacing - 1);