Commit 4f796a17 authored by Antoine Cellerier's avatar Antoine Cellerier

* fix mute button for real (... just needed to copy 4 lines 1 function

down but took me 2 hours to understand) Closes #106
parent 9ded3498
...@@ -352,6 +352,7 @@ void Interface::Update() ...@@ -352,6 +352,7 @@ void Interface::Update()
{ {
/* Misc updates */ /* Misc updates */
((VLCVolCtrl *)volctrl)->UpdateVolume(); ((VLCVolCtrl *)volctrl)->UpdateVolume();
} }
void Interface::OnControlEvent( wxCommandEvent& event ) void Interface::OnControlEvent( wxCommandEvent& event )
...@@ -1454,7 +1455,12 @@ void VLCVolCtrl::OnChange( wxMouseEvent& event ) ...@@ -1454,7 +1455,12 @@ void VLCVolCtrl::OnChange( wxMouseEvent& event )
void VLCVolCtrl::UpdateVolume() void VLCVolCtrl::UpdateVolume()
{ {
int i_volume;
gauge->UpdateVolume(); gauge->UpdateVolume();
i_volume = (audio_volume_t)config_GetInt( p_intf, "volume" );
if( i_volume == 0 ) b_mute = 1;
else b_mute=0;
Refresh();
} }
/***************************************************************************** /*****************************************************************************
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment