From 91d8e7c7c651d555a3255195e72421c2c0ce9fab Mon Sep 17 00:00:00 2001 From: lightningterror Date: Thu, 31 Aug 2017 00:57:15 +0200 Subject: [PATCH] GSdx-Windows: Grey out OSD and Shader Configuration Grey out OSD Configuration button for Direct3D since only OpenGL supports the feature atm. Grey out Shader Configuration button in Core Benchmark. --- plugins/GSdx/GSSettingsDlg.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/plugins/GSdx/GSSettingsDlg.cpp b/plugins/GSdx/GSSettingsDlg.cpp index b35bb327af..9b6dbb7368 100644 --- a/plugins/GSdx/GSSettingsDlg.cpp +++ b/plugins/GSdx/GSSettingsDlg.cpp @@ -399,7 +399,7 @@ void GSSettingsDlg::UpdateControls() ShowWindow(GetDlgItem(m_hWnd, IDC_OPENCL_TEXT), SW_HIDE); #endif - ShowWindow(GetDlgItem(m_hWnd, IDC_LOGZ), dx9? SW_SHOW: SW_HIDE); + ShowWindow(GetDlgItem(m_hWnd, IDC_LOGZ), dx9 ? SW_SHOW: SW_HIDE); ShowWindow(GetDlgItem(m_hWnd, IDC_FBA), dx9 ? SW_SHOW : SW_HIDE); ShowWindow(GetDlgItem(m_hWnd, IDC_ACCURATE_DATE), ogl ? SW_SHOW : SW_HIDE); @@ -443,6 +443,12 @@ void GSSettingsDlg::UpdateControls() // Hacks EnableWindow(GetDlgItem(m_hWnd, IDC_HACKS_ENABLED), hw); EnableWindow(GetDlgItem(m_hWnd, IDC_HACKSBUTTON), hw && IsDlgButtonChecked(m_hWnd, IDC_HACKS_ENABLED)); + + // OSD Configuration + EnableWindow(GetDlgItem(m_hWnd, IDC_OSDBUTTON), ogl); + + // Shader Configuration + EnableWindow(GetDlgItem(m_hWnd, IDC_SHADEBUTTON), !null); } }