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:
Akash 2016-01-29 19:14:34 +05:30
parent 3544b84632
commit edfda74e9c
1 changed files with 5 additions and 3 deletions

View File

@ -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);
}