mirror of https://github.com/PCSX2/pcsx2.git
PCSX2: Fix preset grey out behavior
Previously the text box for "Frames to Draw" and "Frames to Skip" got failed to grey out properly and only the text and arrows got greyed out, The following patch properly greys out the elements. To be noted that the issue wasn't present on 1.2.1 , I guess this was some regression along with WX 3.0 ? v2: Fix Indentation
This commit is contained in:
parent
3544b84632
commit
edfda74e9c
|
@ -231,10 +231,12 @@ void Panels::FrameSkipPanel::ApplyConfigToGui( AppConfig& configToApply, int fla
|
|||
const AppConfig::FramerateOptions& appfps( configToApply.Framerate );
|
||||
const Pcsx2Config::GSOptions& gsconf( configToApply.EmuOptions.GS );
|
||||
|
||||
m_radio_SkipMode ->SetSelection( appfps.SkipOnLimit ? 2 : (appfps.SkipOnTurbo ? 1 : 0) );
|
||||
m_radio_SkipMode->SetSelection( appfps.SkipOnLimit ? 2 : (appfps.SkipOnTurbo ? 1 : 0) );
|
||||
|
||||
m_spin_FramesToDraw ->SetValue( gsconf.FramesToDraw );
|
||||
m_spin_FramesToSkip ->SetValue( gsconf.FramesToSkip );
|
||||
m_spin_FramesToDraw->SetValue( gsconf.FramesToDraw );
|
||||
m_spin_FramesToDraw->Enable(!configToApply.EnablePresets);
|
||||
m_spin_FramesToSkip->SetValue( gsconf.FramesToSkip );
|
||||
m_spin_FramesToSkip->Enable(!configToApply.EnablePresets);
|
||||
|
||||
this->Enable(!configToApply.EnablePresets);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue