From bd5e54e8254c5add01ee18c26455fc0f171d5b08 Mon Sep 17 00:00:00 2001 From: Akash Date: Sat, 22 Jul 2017 23:28:16 +0530 Subject: [PATCH] GSdx-Windows: Fix Shadeboost text bug Forgot to replace `IDC_TEXT` with `IDC_VALUE` macros, due to this the text containing the name of the options was being updated with the current value of the option instead of updating the text designated for holding the values. --- plugins/GSdx/GSSettingsDlg.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/GSdx/GSSettingsDlg.cpp b/plugins/GSdx/GSSettingsDlg.cpp index edbf30e80b..b35bb327af 100644 --- a/plugins/GSdx/GSSettingsDlg.cpp +++ b/plugins/GSdx/GSSettingsDlg.cpp @@ -535,7 +535,7 @@ bool GSShaderDlg::OnMessage(UINT message, WPARAM wParam, LPARAM lParam) m_saturation = SendMessage(GetDlgItem(m_hWnd, IDC_SATURATION_SLIDER),TBM_GETPOS,0,0); sprintf(text, "%d", m_saturation); - SetDlgItemText(m_hWnd, IDC_SATURATION_TEXT, text); + SetDlgItemText(m_hWnd, IDC_SATURATION_VALUE, text); } else if((HWND)lParam == GetDlgItem(m_hWnd, IDC_BRIGHTNESS_SLIDER)) { @@ -544,7 +544,7 @@ bool GSShaderDlg::OnMessage(UINT message, WPARAM wParam, LPARAM lParam) m_brightness = SendMessage(GetDlgItem(m_hWnd, IDC_BRIGHTNESS_SLIDER),TBM_GETPOS,0,0); sprintf(text, "%d", m_brightness); - SetDlgItemText(m_hWnd, IDC_BRIGHTNESS_TEXT, text); + SetDlgItemText(m_hWnd, IDC_BRIGHTNESS_VALUE, text); } else if((HWND)lParam == GetDlgItem(m_hWnd, IDC_CONTRAST_SLIDER)) { @@ -553,7 +553,7 @@ bool GSShaderDlg::OnMessage(UINT message, WPARAM wParam, LPARAM lParam) m_contrast = SendMessage(GetDlgItem(m_hWnd, IDC_CONTRAST_SLIDER),TBM_GETPOS,0,0); sprintf(text, "%d", m_contrast); - SetDlgItemText(m_hWnd, IDC_CONTRAST_TEXT, text); + SetDlgItemText(m_hWnd, IDC_CONTRAST_VALUE, text); } } break;