fixed minor bug in viewer
This commit is contained in:
parent
d8d7e9142d
commit
19a30284e5
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ public class ViewRSSI extends JPanel {
|
||||||
public void paint(Graphics g) {
|
public void paint(Graphics g) {
|
||||||
int h = getHeight();
|
int h = getHeight();
|
||||||
int w = getWidth();
|
int w = getWidth();
|
||||||
g.clearRect(0, 0, 300, h);
|
g.clearRect(0, 0, w, h);
|
||||||
double factor = (h - 20.0) / RSSI_MAX_VALUE;
|
double factor = (h - 20.0) / RSSI_MAX_VALUE;
|
||||||
double sSpacing = (w - 15 ) / 80.0;
|
double sSpacing = (w - 15 ) / 80.0;
|
||||||
int sWidth = (int) (sSpacing - 1);
|
int sWidth = (int) (sSpacing - 1);
|
||||||
|
|
Loading…
Reference in a new issue