From: Antoine Cellerier Date: Sat, 14 May 2005 20:12:21 +0000 (+0000) Subject: kind of begin fixing the mute button (at least it doesn't diplay the X-Git-Tag: 0.8.2~221 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=9ded349808efd1be8a3dff05b0fbec3daf5c978a;p=vlc kind of begin fixing the mute button (at least it doesn't diplay the mute icon when sound isn't mute now). Rels #106 --- diff --git a/modules/gui/wxwindows/interface.cpp b/modules/gui/wxwindows/interface.cpp index fec9e36736..c43160ce5d 100644 --- a/modules/gui/wxwindows/interface.cpp +++ b/modules/gui/wxwindows/interface.cpp @@ -1445,8 +1445,9 @@ void VLCVolCtrl::OnChange( wxMouseEvent& event ) { int i_volume; aout_VolumeMute( p_intf, (audio_volume_t *)&i_volume ); - - b_mute = !b_mute; + i_volume = (audio_volume_t)config_GetInt( p_intf, "volume" ); + if( i_volume == 0 ) b_mute = 1; + else b_mute=0; Refresh(); } }