From 9ded349808efd1be8a3dff05b0fbec3daf5c978a Mon Sep 17 00:00:00 2001 From: Antoine Cellerier Date: Sat, 14 May 2005 20:12:21 +0000 Subject: [PATCH] kind of begin fixing the mute button (at least it doesn't diplay the mute icon when sound isn't mute now). Rels #106 --- modules/gui/wxwindows/interface.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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(); } } -- 2.39.2