altoslib: Recover from a couple of API changes
authorKeith Packard <keithp@keithp.com>
Sun, 28 May 2017 06:42:52 +0000 (23:42 -0700)
committerKeith Packard <keithp@keithp.com>
Sun, 28 May 2017 06:42:52 +0000 (23:42 -0700)
Nothing serious.

Signed-off-by: Keith Packard <keithp@keithp.com>
altosui/AltosFlightStatus.java
telegps/TeleGPSGraphUI.java

index 26f0379..2ff7687 100644 (file)
@@ -93,14 +93,14 @@ public class AltosFlightStatus extends JComponent implements AltosFlightDisplay
                }
 
                void show(AltosState state, AltosListenerState listener_state) {
-                       if (!same_call(state.callsign)) {
+                       if (!same_call(state.cal_data.callsign)) {
                                show();
-                               value.setText(state.callsign);
-                               if (state.callsign == null)
+                               value.setText(state.cal_data.callsign);
+                               if (state.cal_data.callsign == null)
                                        setVisible(false);
                                else
                                        setVisible(true);
-                               last_call = state.callsign;
+                               last_call = state.cal_data.callsign;
                        }
                }
 
index 3e76564..85238d7 100644 (file)
@@ -105,7 +105,7 @@ public class TeleGPSGraphUI extends AltosUIFrame implements AltosFontListener, A
                enable = new AltosUIEnable();
                stats = new AltosFlightStats(flight_series);
 
-               graph = new AltosGraphNew(enable, stats, flight_series, cal_data);
+               graph = new AltosGraphNew(enable, stats, flight_series);
 
                statsTable = new AltosFlightStatsTable(stats);