Merge pull request #936 from lioncash/printf
DolphinWX: Change a wx Printf call to a Format call
This commit is contained in:
commit
8913c71dc1
|
@ -43,8 +43,7 @@ WiimoteConfigDiag::WiimoteConfigDiag(wxWindow* const parent, InputConfig& config
|
||||||
|
|
||||||
for (unsigned int i = 0; i < MAX_WIIMOTES; ++i)
|
for (unsigned int i = 0; i < MAX_WIIMOTES; ++i)
|
||||||
{
|
{
|
||||||
wxString str;
|
wxString wiimote_str = wxString::Format(_("Wiimote %i"), i + 1);
|
||||||
str.Printf(_("Wiimote %i"), i + 1);
|
|
||||||
|
|
||||||
const wxString src_choices[] = { _("None"),
|
const wxString src_choices[] = { _("None"),
|
||||||
_("Emulated Wiimote"), _("Real Wiimote"), _("Hybrid Wiimote") };
|
_("Emulated Wiimote"), _("Real Wiimote"), _("Hybrid Wiimote") };
|
||||||
|
@ -57,7 +56,7 @@ WiimoteConfigDiag::WiimoteConfigDiag(wxWindow* const parent, InputConfig& config
|
||||||
int config_bt_id = wxWindow::NewControlId();
|
int config_bt_id = wxWindow::NewControlId();
|
||||||
m_wiimote_index_from_conf_bt_id.insert(std::pair<wxWindowID, unsigned int>(config_bt_id, i));
|
m_wiimote_index_from_conf_bt_id.insert(std::pair<wxWindowID, unsigned int>(config_bt_id, i));
|
||||||
|
|
||||||
wiimote_label[i] = new wxStaticText(this, wxID_ANY, str);
|
wiimote_label[i] = new wxStaticText(this, wxID_ANY, wiimote_str);
|
||||||
wiimote_source_ch[i] = new wxChoice(this, source_ctrl_id, wxDefaultPosition, wxDefaultSize, sizeof(src_choices)/sizeof(*src_choices), src_choices);
|
wiimote_source_ch[i] = new wxChoice(this, source_ctrl_id, wxDefaultPosition, wxDefaultSize, sizeof(src_choices)/sizeof(*src_choices), src_choices);
|
||||||
wiimote_source_ch[i]->Bind(wxEVT_CHOICE, &WiimoteConfigDiag::SelectSource, this);
|
wiimote_source_ch[i]->Bind(wxEVT_CHOICE, &WiimoteConfigDiag::SelectSource, this);
|
||||||
wiimote_configure_bt[i] = new wxButton(this, config_bt_id, _("Configure"));
|
wiimote_configure_bt[i] = new wxButton(this, config_bt_id, _("Configure"));
|
||||||
|
@ -69,7 +68,6 @@ WiimoteConfigDiag::WiimoteConfigDiag(wxWindow* const parent, InputConfig& config
|
||||||
wiimote_configure_bt[i]->Disable();
|
wiimote_configure_bt[i]->Disable();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// "Wiimotes" layout
|
// "Wiimotes" layout
|
||||||
wxStaticBoxSizer* const wiimote_group = new wxStaticBoxSizer(wxHORIZONTAL, this, _("Wiimotes"));
|
wxStaticBoxSizer* const wiimote_group = new wxStaticBoxSizer(wxHORIZONTAL, this, _("Wiimotes"));
|
||||||
wxFlexGridSizer* const wiimote_sizer = new wxFlexGridSizer(3, 5, 5);
|
wxFlexGridSizer* const wiimote_sizer = new wxFlexGridSizer(3, 5, 5);
|
||||||
|
@ -169,10 +167,8 @@ WiimoteConfigDiag::WiimoteConfigDiag(wxWindow* const parent, InputConfig& config
|
||||||
wiimote_source_ch[i]->Disable();
|
wiimote_source_ch[i]->Disable();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// "General Settings" initialization
|
// "General Settings" initialization
|
||||||
WiiSensBarPos->SetSelection(SConfig::GetInstance().m_SYSCONF->GetData<u8>("BT.BAR"));
|
WiiSensBarPos->SetSelection(SConfig::GetInstance().m_SYSCONF->GetData<u8>("BT.BAR"));
|
||||||
WiiSensBarSens->SetValue(SConfig::GetInstance().m_SYSCONF->GetData<u32>("BT.SENS"));
|
WiiSensBarSens->SetValue(SConfig::GetInstance().m_SYSCONF->GetData<u32>("BT.SENS"));
|
||||||
|
|
Loading…
Reference in New Issue