mirror of https://github.com/PCSX2/pcsx2.git
input-rec: Update the GS Frame's freq. properly on enabling/disabling
This commit is contained in:
parent
cf33fb3ca1
commit
99f8d2fa84
|
@ -589,8 +589,7 @@ bool GSFrame::ShowFullScreen(bool show, bool updateConfig)
|
|||
return retval;
|
||||
}
|
||||
|
||||
|
||||
void GSFrame::CoreThread_OnResumed()
|
||||
void GSFrame::UpdateTitleUpdateFreq()
|
||||
{
|
||||
#ifndef DISABLE_RECORDING
|
||||
if (g_Conf->EmuOptions.EnableRecordingTools)
|
||||
|
@ -604,8 +603,15 @@ void GSFrame::CoreThread_OnResumed()
|
|||
#else
|
||||
m_timer_UpdateTitle.Start(TitleBarUpdateMs);
|
||||
#endif
|
||||
|
||||
if( !IsShown() ) Show();
|
||||
}
|
||||
|
||||
void GSFrame::CoreThread_OnResumed()
|
||||
{
|
||||
UpdateTitleUpdateFreq();
|
||||
if (!IsShown())
|
||||
{
|
||||
Show();
|
||||
}
|
||||
}
|
||||
|
||||
void GSFrame::CoreThread_OnSuspended()
|
||||
|
|
|
@ -107,6 +107,7 @@ public:
|
|||
bool Show( bool shown=true );
|
||||
|
||||
bool ShowFullScreen(bool show, bool updateConfig = true);
|
||||
void UpdateTitleUpdateFreq();
|
||||
|
||||
protected:
|
||||
void OnCloseWindow( wxCloseEvent& evt );
|
||||
|
|
|
@ -631,6 +631,11 @@ void MainEmuFrame::Menu_EnableRecordingTools_Click(wxCommandEvent& event)
|
|||
}
|
||||
|
||||
g_Conf->EmuOptions.EnableRecordingTools = checked;
|
||||
// Update GS Title Frequency
|
||||
if (GSFrame* gsFrame = wxGetApp().GetGsFramePtr())
|
||||
{
|
||||
gsFrame->UpdateTitleUpdateFreq();
|
||||
}
|
||||
// Enable Recording Logs
|
||||
ConsoleLogFrame* progLog = wxGetApp().GetProgramLog();
|
||||
progLog->UpdateLogList();
|
||||
|
|
Loading…
Reference in New Issue