From edfda74e9cd1b5d5832643d6fe9b630a2b0c6db5 Mon Sep 17 00:00:00 2001 From: Akash Date: Fri, 29 Jan 2016 19:14:34 +0530 Subject: [PATCH] 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 --- pcsx2/gui/Panels/VideoPanel.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pcsx2/gui/Panels/VideoPanel.cpp b/pcsx2/gui/Panels/VideoPanel.cpp index 0dc7b8545f..2a5d8470dc 100644 --- a/pcsx2/gui/Panels/VideoPanel.cpp +++ b/pcsx2/gui/Panels/VideoPanel.cpp @@ -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); }