]> git.sesse.net Git - vlc/commitdiff
* fix mute button for real (... just needed to copy 4 lines 1 function
authorAntoine Cellerier <dionoea@videolan.org>
Sat, 14 May 2005 20:39:42 +0000 (20:39 +0000)
committerAntoine Cellerier <dionoea@videolan.org>
Sat, 14 May 2005 20:39:42 +0000 (20:39 +0000)
down but took me 2 hours to understand) Closes #106

modules/gui/wxwindows/interface.cpp

index c43160ce5d277851e93db1517290741fd203f42d..c40287a0f7356d936a7a6e124aa7e02539882e9f 100644 (file)
@@ -352,6 +352,7 @@ void Interface::Update()
 {
     /* Misc updates */
     ((VLCVolCtrl *)volctrl)->UpdateVolume();
+    
 }
 
 void Interface::OnControlEvent( wxCommandEvent& event )
@@ -1454,7 +1455,12 @@ void VLCVolCtrl::OnChange( wxMouseEvent& event )
 
 void VLCVolCtrl::UpdateVolume()
 {
+    int i_volume;
     gauge->UpdateVolume();
+    i_volume = (audio_volume_t)config_GetInt( p_intf, "volume" );
+    if( i_volume == 0 ) b_mute = 1;
+    else b_mute=0;
+    Refresh();
 }
 
 /*****************************************************************************