changeset 36821:7958d1c69edc

Fix bug with audio delay slider in Win32 GUI. The slider doesn't depend on option extrastereo, it has to be available at all times.
author ib
date Sun, 23 Feb 2014 20:43:09 +0000
parents d90c15fd18d3
children 95e3f435bc57
files gui/win32/preferences.c
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/gui/win32/preferences.c	Sun Feb 23 20:34:13 2014 +0000
+++ b/gui/win32/preferences.c	Sun Feb 23 20:43:09 2014 +0000
@@ -392,6 +392,7 @@
             SendDlgItemMessage(hwnd, ID_TRACKBAR1, TBM_SETPOS, 1, (LPARAM)stereopos);
 
             SendDlgItemMessage(hwnd, ID_TRACKBAR2, TBM_SETPOS, 1, (LPARAM)delaypos);
+            EnableWindow(GetDlgItem(hwnd, ID_TRACKBAR2), TRUE);
 
             if(gtkCacheOn) {
                 SendDlgItemMessage(hwnd, ID_CACHE, BM_SETCHECK, 1, 0);
@@ -449,12 +450,9 @@
                     if(SendDlgItemMessage(hwnd, ID_EXTRASTEREO, BM_GETCHECK, 0, 0) == BST_CHECKED)
                     {
                         EnableWindow(GetDlgItem(hwnd, ID_TRACKBAR1), 1);
-                        EnableWindow(GetDlgItem(hwnd, ID_TRACKBAR2), 1);
                     } else {
                         EnableWindow(GetDlgItem(hwnd, ID_TRACKBAR1), 0);
-                        EnableWindow(GetDlgItem(hwnd, ID_TRACKBAR2), 0);
                         SendDlgItemMessage(hwnd, ID_TRACKBAR1, TBM_SETPOS, 1, (LPARAM)10.0);
-                        SendDlgItemMessage(hwnd, ID_TRACKBAR2, TBM_SETPOS, 1, (LPARAM)0);
                     }
                     break;
                 }