[MPlayer-cvslog] r36917 - trunk/gui/win32/preferences.c

ib subversion at mplayerhq.hu
Sun Feb 23 21:43:09 CET 2014


Author: ib
Date: Sun Feb 23 21:43:09 2014
New Revision: 36917

Log:
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.

Modified:
   trunk/gui/win32/preferences.c

Modified: trunk/gui/win32/preferences.c
==============================================================================
--- trunk/gui/win32/preferences.c	Sun Feb 23 21:34:13 2014	(r36916)
+++ trunk/gui/win32/preferences.c	Sun Feb 23 21:43:09 2014	(r36917)
@@ -392,6 +392,7 @@ static LRESULT CALLBACK PrefsWndProc(HWN
             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 @@ static LRESULT CALLBACK PrefsWndProc(HWN
                     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;
                 }


More information about the MPlayer-cvslog mailing list