From: Antoine Cellerier Date: Sat, 14 May 2005 20:39:42 +0000 (+0000) Subject: * fix mute button for real (... just needed to copy 4 lines 1 function X-Git-Tag: 0.8.2~220 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=4f796a17c553bbf8f5eb5da510215aeb23ba0eb8;p=vlc * fix mute button for real (... just needed to copy 4 lines 1 function down but took me 2 hours to understand) Closes #106 --- diff --git a/modules/gui/wxwindows/interface.cpp b/modules/gui/wxwindows/interface.cpp index c43160ce5d..c40287a0f7 100644 --- a/modules/gui/wxwindows/interface.cpp +++ b/modules/gui/wxwindows/interface.cpp @@ -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(); } /*****************************************************************************