Wx: Remove sync to host refresh rate option

Still available in Qt obviously. Apparently there's COM reinitialization
issues on the CPU thread in wx, and I don't want to deal with that nonsense.
This commit is contained in:
Connor McLaughlin 2022-06-19 14:08:47 +10:00 committed by lightningterror
parent fbf9585b5a
commit 999b2267c0
2 changed files with 0 additions and 5 deletions

View File

@ -265,7 +265,6 @@ namespace Panels
pxCheckBox* m_check_HideMouse;
pxCheckBox* m_check_DclickFullscreen;
pxCheckBox* m_check_SyncToHostRefreshRate;
wxTextCtrl* m_text_WindowWidth;
wxTextCtrl* m_text_WindowHeight;

View File

@ -74,7 +74,6 @@ Panels::GSWindowSettingsPanel::GSWindowSettingsPanel(wxWindow* parent)
// Implement custom hotkeys (Alt + Enter) with translatable string intact + not blank in GUI.
m_check_Fullscreen = new pxCheckBox(this, _("Start in fullscreen mode by default") + wxString(" (") + wxGetApp().GlobalAccels->findKeycodeWithCommandId("FullscreenToggle").toTitleizedString() + wxString(")"));
m_check_DclickFullscreen = new pxCheckBox(this, _("Double-click toggles fullscreen mode"));
m_check_SyncToHostRefreshRate = new pxCheckBox(this, _("Sync To Host Refresh Rate"));
m_combo_FMVAspectRatioSwitch->SetToolTip(pxEt(L"Off: Disables temporary aspect ratio switch. (It will use the above setting from Aspect Ratio instead of FMV Aspect Ratio Override.)\n\n"
L"Auto 4:3/3:2: Temporarily switch to a 4:3 aspect ratio while an FMV plays to correctly display a 4:3 FMV. Will use 3:2 is the resolution is 480P\n\n"
@ -137,7 +136,6 @@ Panels::GSWindowSettingsPanel::GSWindowSettingsPanel(wxWindow* parent)
*this += m_check_Fullscreen;
*this += m_check_DclickFullscreen;
*this += m_check_SyncToHostRefreshRate;
*this += new wxStaticLine(this) | StdExpand();
*this += s_vsync | StdExpand();
@ -171,7 +169,6 @@ void Panels::GSWindowSettingsPanel::ApplyConfigToGui(AppConfig& configToApply, i
m_text_Zoom->ChangeValue(wxString::FromDouble(gsconf.Zoom, 2));
m_check_DclickFullscreen->SetValue(conf.IsToggleFullscreenOnDoubleClick);
m_check_SyncToHostRefreshRate->SetValue(gsconf.SyncToHostRefreshRate);
m_text_WindowWidth->ChangeValue(wxsFormat(L"%d", conf.WindowSize.GetWidth()));
m_text_WindowHeight->ChangeValue(wxsFormat(L"%d", conf.WindowSize.GetHeight()));
@ -202,7 +199,6 @@ void Panels::GSWindowSettingsPanel::Apply()
gsconf.VsyncEnable = static_cast<VsyncMode>(m_combo_vsync->GetSelection());
appconf.IsToggleFullscreenOnDoubleClick = m_check_DclickFullscreen->GetValue();
gsconf.SyncToHostRefreshRate = m_check_SyncToHostRefreshRate->GetValue();
long xr, yr = 1;