diff options
Diffstat (limited to 'tracker_frame.cpp')
-rw-r--r-- | tracker_frame.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tracker_frame.cpp b/tracker_frame.cpp index 774b710..2a862a5 100644 --- a/tracker_frame.cpp +++ b/tracker_frame.cpp | |||
@@ -11,10 +11,11 @@ wxDEFINE_EVENT(STATE_CHANGED, wxCommandEvent); | |||
11 | wxDEFINE_EVENT(STATUS_CHANGED, wxCommandEvent); | 11 | wxDEFINE_EVENT(STATUS_CHANGED, wxCommandEvent); |
12 | 12 | ||
13 | TrackerFrame::TrackerFrame() | 13 | TrackerFrame::TrackerFrame() |
14 | : wxFrame(nullptr, wxID_ANY, "Lingo Archipelago Tracker", wxDefaultPosition, wxDefaultSize, wxDEFAULT_FRAME_STYLE | wxFULL_REPAINT_ON_RESIZE) { | 14 | : wxFrame(nullptr, wxID_ANY, "Lingo Archipelago Tracker", wxDefaultPosition, |
15 | wxDefaultSize, wxDEFAULT_FRAME_STYLE | wxFULL_REPAINT_ON_RESIZE) { | ||
15 | ::wxInitAllImageHandlers(); | 16 | ::wxInitAllImageHandlers(); |
16 | 17 | ||
17 | GetAPState().SetTrackerFrame(this); | 18 | AP_SetTrackerFrame(this); |
18 | 19 | ||
19 | SetSize(1280, 728); | 20 | SetSize(1280, 728); |
20 | 21 | ||
@@ -70,8 +71,8 @@ void TrackerFrame::OnConnect(wxCommandEvent &event) { | |||
70 | GetTrackerConfig().ap_password = dlg.GetPasswordValue(); | 71 | GetTrackerConfig().ap_password = dlg.GetPasswordValue(); |
71 | GetTrackerConfig().Save(); | 72 | GetTrackerConfig().Save(); |
72 | 73 | ||
73 | GetAPState().Connect(dlg.GetServerValue(), dlg.GetPlayerValue(), | 74 | AP_Connect(dlg.GetServerValue(), dlg.GetPlayerValue(), |
74 | dlg.GetPasswordValue()); | 75 | dlg.GetPasswordValue()); |
75 | } | 76 | } |
76 | } | 77 | } |
77 | 78 | ||