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;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void GSFrame::UpdateTitleUpdateFreq()
|
||||||
void GSFrame::CoreThread_OnResumed()
|
|
||||||
{
|
{
|
||||||
#ifndef DISABLE_RECORDING
|
#ifndef DISABLE_RECORDING
|
||||||
if (g_Conf->EmuOptions.EnableRecordingTools)
|
if (g_Conf->EmuOptions.EnableRecordingTools)
|
||||||
|
@ -604,8 +603,15 @@ void GSFrame::CoreThread_OnResumed()
|
||||||
#else
|
#else
|
||||||
m_timer_UpdateTitle.Start(TitleBarUpdateMs);
|
m_timer_UpdateTitle.Start(TitleBarUpdateMs);
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
if( !IsShown() ) Show();
|
|
||||||
|
void GSFrame::CoreThread_OnResumed()
|
||||||
|
{
|
||||||
|
UpdateTitleUpdateFreq();
|
||||||
|
if (!IsShown())
|
||||||
|
{
|
||||||
|
Show();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void GSFrame::CoreThread_OnSuspended()
|
void GSFrame::CoreThread_OnSuspended()
|
||||||
|
|
|
@ -107,6 +107,7 @@ public:
|
||||||
bool Show( bool shown=true );
|
bool Show( bool shown=true );
|
||||||
|
|
||||||
bool ShowFullScreen(bool show, bool updateConfig = true);
|
bool ShowFullScreen(bool show, bool updateConfig = true);
|
||||||
|
void UpdateTitleUpdateFreq();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void OnCloseWindow( wxCloseEvent& evt );
|
void OnCloseWindow( wxCloseEvent& evt );
|
||||||
|
|
|
@ -631,6 +631,11 @@ void MainEmuFrame::Menu_EnableRecordingTools_Click(wxCommandEvent& event)
|
||||||
}
|
}
|
||||||
|
|
||||||
g_Conf->EmuOptions.EnableRecordingTools = checked;
|
g_Conf->EmuOptions.EnableRecordingTools = checked;
|
||||||
|
// Update GS Title Frequency
|
||||||
|
if (GSFrame* gsFrame = wxGetApp().GetGsFramePtr())
|
||||||
|
{
|
||||||
|
gsFrame->UpdateTitleUpdateFreq();
|
||||||
|
}
|
||||||
// Enable Recording Logs
|
// Enable Recording Logs
|
||||||
ConsoleLogFrame* progLog = wxGetApp().GetProgramLog();
|
ConsoleLogFrame* progLog = wxGetApp().GetProgramLog();
|
||||||
progLog->UpdateLogList();
|
progLog->UpdateLogList();
|
||||||
|
|
Loading…
Reference in New Issue