changeset 36973:79fe279d3bac

Set state for buttons volume and balance on skin change.
author ib
date Tue, 25 Mar 2014 13:45:52 +0000
parents a56291ee9bf9
children 6c3562d643a8
files gui/ui/actions.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gui/ui/actions.c	Tue Mar 25 13:07:24 2014 +0000
+++ b/gui/ui/actions.c	Tue Mar 25 13:45:52 2014 +0000
@@ -658,6 +658,11 @@
 
     /* */
 
+    if (guiInfo.AudioPassthrough)
+        btnSet(evSetVolume, btnDisabled);
+    if (guiInfo.AudioChannels < 2 || guiInfo.AudioPassthrough)
+        btnSet(evSetBalance, btnDisabled);
+
     btnSet(evFullScreen, (guiApp.videoWindow.isFullScreen ? btnPressed : btnReleased));
 
     wsWindowLayer(wsDisplay, guiApp.mainWindow.WindowID, guiApp.videoWindow.isFullScreen);