diff options
Diffstat (limited to 'src/connection_dialog.cpp')
-rw-r--r-- | src/connection_dialog.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/connection_dialog.cpp b/src/connection_dialog.cpp index 45a5b53..b55a138 100644 --- a/src/connection_dialog.cpp +++ b/src/connection_dialog.cpp | |||
@@ -7,17 +7,18 @@ ConnectionDialog::ConnectionDialog() | |||
7 | server_box_ = new wxTextCtrl( | 7 | server_box_ = new wxTextCtrl( |
8 | this, -1, | 8 | this, -1, |
9 | wxString::FromUTF8(GetTrackerConfig().connection_details.ap_server), | 9 | wxString::FromUTF8(GetTrackerConfig().connection_details.ap_server), |
10 | wxDefaultPosition, {300, -1}); | 10 | wxDefaultPosition, FromDIP(wxSize{300, -1})); |
11 | player_box_ = new wxTextCtrl( | 11 | player_box_ = new wxTextCtrl( |
12 | this, -1, | 12 | this, -1, |
13 | wxString::FromUTF8(GetTrackerConfig().connection_details.ap_player), | 13 | wxString::FromUTF8(GetTrackerConfig().connection_details.ap_player), |
14 | wxDefaultPosition, {300, -1}); | 14 | wxDefaultPosition, FromDIP(wxSize{300, -1})); |
15 | password_box_ = new wxTextCtrl( | 15 | password_box_ = new wxTextCtrl( |
16 | this, -1, | 16 | this, -1, |
17 | wxString::FromUTF8(GetTrackerConfig().connection_details.ap_password), | 17 | wxString::FromUTF8(GetTrackerConfig().connection_details.ap_password), |
18 | wxDefaultPosition, {300, -1}); | 18 | wxDefaultPosition, FromDIP(wxSize{300, -1})); |
19 | 19 | ||
20 | wxFlexGridSizer* form_sizer = new wxFlexGridSizer(2, 10, 10); | 20 | wxFlexGridSizer* form_sizer = |
21 | new wxFlexGridSizer(2, FromDIP(10), FromDIP(10)); | ||
21 | 22 | ||
22 | form_sizer->Add( | 23 | form_sizer->Add( |
23 | new wxStaticText(this, -1, "Server:"), | 24 | new wxStaticText(this, -1, "Server:"), |