diff options
Diffstat (limited to 'src/ipc_dialog.cpp')
-rw-r--r-- | src/ipc_dialog.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ipc_dialog.cpp b/src/ipc_dialog.cpp index 1e09a2f..6763b7f 100644 --- a/src/ipc_dialog.cpp +++ b/src/ipc_dialog.cpp | |||
@@ -13,12 +13,13 @@ IpcDialog::IpcDialog() : wxDialog(nullptr, wxID_ANY, "Connect to game") { | |||
13 | } | 13 | } |
14 | 14 | ||
15 | address_box_ = new wxTextCtrl(this, -1, wxString::FromUTF8(address_value), | 15 | address_box_ = new wxTextCtrl(this, -1, wxString::FromUTF8(address_value), |
16 | wxDefaultPosition, {300, -1}); | 16 | wxDefaultPosition, FromDIP(wxSize{300, -1})); |
17 | 17 | ||
18 | wxButton* reset_button = new wxButton(this, -1, "Use Default"); | 18 | wxButton* reset_button = new wxButton(this, -1, "Use Default"); |
19 | reset_button->Bind(wxEVT_BUTTON, &IpcDialog::OnResetClicked, this); | 19 | reset_button->Bind(wxEVT_BUTTON, &IpcDialog::OnResetClicked, this); |
20 | 20 | ||
21 | wxFlexGridSizer* form_sizer = new wxFlexGridSizer(3, 10, 10); | 21 | wxFlexGridSizer* form_sizer = |
22 | new wxFlexGridSizer(3, FromDIP(10), FromDIP(10)); | ||
22 | form_sizer->Add( | 23 | form_sizer->Add( |
23 | new wxStaticText(this, -1, "Address:"), | 24 | new wxStaticText(this, -1, "Address:"), |
24 | wxSizerFlags().Align(wxALIGN_CENTER_VERTICAL | wxALIGN_RIGHT)); | 25 | wxSizerFlags().Align(wxALIGN_CENTER_VERTICAL | wxALIGN_RIGHT)); |