Merge pull request #4587 from aldelaro5/fix-hidpi-mic

Add an empty spacer in the Mic Input config dialog
This commit is contained in:
Anthony 2016-12-31 16:24:46 -08:00 committed by GitHub
commit e8052fbf78
1 changed files with 10 additions and 2 deletions

12
Source/Core/DolphinWX/Input/MicButtonConfigDiag.cpp Normal file → Executable file
View File

@ -12,25 +12,33 @@ MicButtonConfigDialog::MicButtonConfigDialog(wxWindow* const parent, InputConfig
: InputConfigDialog(parent, config, name, port_num)
{
const int space5 = FromDIP(5);
const int space150 = FromDIP(150);
auto* const device_chooser = CreateDeviceChooserGroupBox();
auto* const device_chooser_szr = new wxBoxSizer(wxHORIZONTAL);
device_chooser_szr->AddSpacer(space5);
device_chooser_szr->Add(device_chooser, 1, wxEXPAND);
device_chooser_szr->AddSpacer(space5);
auto* const group_box_button =
new ControlGroupBox(Pad::GetGroup(port_num, PadGroup::Mic), this, this);
auto* const controls_sizer = new wxBoxSizer(wxHORIZONTAL);
controls_sizer->Add(group_box_button, 0, wxEXPAND);
// Avoid having the device combo box to be too small.
controls_sizer->AddSpacer(space150);
auto* const szr_main = new wxBoxSizer(wxVERTICAL);
szr_main->AddSpacer(space5);
szr_main->Add(device_chooser, 0, wxEXPAND);
szr_main->Add(device_chooser_szr, 0, wxEXPAND);
szr_main->AddSpacer(space5);
szr_main->Add(controls_sizer, 1, wxEXPAND | wxLEFT | wxRIGHT, space5);
szr_main->AddSpacer(space5);
szr_main->Add(CreateButtonSizer(wxCLOSE | wxNO_DEFAULT), 0, wxEXPAND | wxLEFT | wxRIGHT, space5);
szr_main->AddSpacer(space5);
SetSizer(szr_main);
SetSizerAndFit(szr_main);
Center();
UpdateGUI();
}