Use wxStaticText::Wrap rather than manually inserting newlines
This commit is contained in:
parent
df7c9664da
commit
8f56138ec4
|
@ -29,14 +29,15 @@ void AdvancedConfigPane::InitializeGUI()
|
||||||
m_clock_override_slider->Bind(wxEVT_SLIDER, &AdvancedConfigPane::OnClockOverrideSliderChanged, this);
|
m_clock_override_slider->Bind(wxEVT_SLIDER, &AdvancedConfigPane::OnClockOverrideSliderChanged, this);
|
||||||
|
|
||||||
wxStaticText* const clock_override_description = new wxStaticText(this, wxID_ANY,
|
wxStaticText* const clock_override_description = new wxStaticText(this, wxID_ANY,
|
||||||
_("Higher values can make variable-framerate games\n"
|
_("Higher values can make variable-framerate games "
|
||||||
"run at a higher framerate, at the expense of CPU.\n"
|
"run at a higher framerate, at the expense of CPU. "
|
||||||
"Lower values can make variable-framerate games\n"
|
"Lower values can make variable-framerate games "
|
||||||
"run at a lower framerate, saving CPU.\n\n"
|
"run at a lower framerate, saving CPU.\n\n"
|
||||||
"WARNING: Changing this from the default (100%)\n"
|
"WARNING: Changing this from the default (100%) "
|
||||||
"can and will break games and cause glitches.\n"
|
"can and will break games and cause glitches. "
|
||||||
"Do so at your own risk. Please do not report\n"
|
"Do so at your own risk. Please do not report "
|
||||||
"bugs that occur with a non-default clock.\n"));
|
"bugs that occur with a non-default clock. "));
|
||||||
|
clock_override_description->Wrap(400);
|
||||||
|
|
||||||
wxBoxSizer* const clock_override_checkbox_sizer = new wxBoxSizer(wxHORIZONTAL);
|
wxBoxSizer* const clock_override_checkbox_sizer = new wxBoxSizer(wxHORIZONTAL);
|
||||||
clock_override_checkbox_sizer->Add(m_clock_override_checkbox);
|
clock_override_checkbox_sizer->Add(m_clock_override_checkbox);
|
||||||
|
|
Loading…
Reference in New Issue