VideoConfig: Rename StereoFocalLength to StereoConvergence.

This commit is contained in:
Jules Blok
2014-11-24 11:50:35 +01:00
parent 9b2cd82da5
commit 0f4d59f612
6 changed files with 11 additions and 11 deletions

View File

@ -1135,13 +1135,13 @@ void CFrame::OnKeyDown(wxKeyEvent& event)
}
else if (IsHotkey(event, HK_INCREASE_CONVERGENCE))
{
if (++g_Config.iStereoFocalLength > 200)
g_Config.iStereoFocalLength = 200;
if (++g_Config.iStereoConvergence > 200)
g_Config.iStereoConvergence = 200;
}
else if (IsHotkey(event, HK_DECREASE_CONVERGENCE))
{
if (--g_Config.iStereoFocalLength < 10)
g_Config.iStereoFocalLength = 10;
if (--g_Config.iStereoConvergence < 10)
g_Config.iStereoConvergence = 10;
}
else

View File

@ -465,7 +465,7 @@ VideoConfigDiag::VideoConfigDiag(wxWindow* parent, const std::string &title, con
szr_stereo->Add(new wxStaticText(page_enh, wxID_ANY, _("Separation:")), 1, wxALIGN_CENTER_VERTICAL, 0);
szr_stereo->Add(sep_slider, 0, wxEXPAND | wxRIGHT);
wxSlider* const conv_slider = new wxSlider(page_enh, wxID_ANY, vconfig.iStereoFocalLength, 10, 200, wxDefaultPosition, wxDefaultSize);
wxSlider* const conv_slider = new wxSlider(page_enh, wxID_ANY, vconfig.iStereoConvergence, 10, 200, wxDefaultPosition, wxDefaultSize);
conv_slider->Bind(wxEVT_SLIDER, &VideoConfigDiag::Event_StereoFoc, this);
RegisterControl(conv_slider, wxGetTranslation(stereo_convergence_desc));

View File

@ -174,7 +174,7 @@ protected:
void Event_StereoFoc(wxCommandEvent &ev)
{
vconfig.iStereoFocalLength = ev.GetInt();
vconfig.iStereoConvergence = ev.GetInt();
ev.Skip();
}