Commit ce56b917 authored by hartman's avatar hartman

* revert previous patch

parent 865b74ef
...@@ -1417,8 +1417,8 @@ void wxVolCtrl::OnChange( wxMouseEvent& event ) ...@@ -1417,8 +1417,8 @@ void wxVolCtrl::OnChange( wxMouseEvent& event )
{ {
if( !event.LeftDown() && !event.LeftIsDown() ) return; if( !event.LeftDown() && !event.LeftIsDown() ) return;
int i_volume = event.GetX() * 400 / GetClientSize().GetWidth(); int i_volume = event.GetX() * 200 / GetClientSize().GetWidth();
aout_VolumeSet( p_intf, i_volume * AOUT_VOLUME_MAX / 400 / 2 ); aout_VolumeSet( p_intf, i_volume * AOUT_VOLUME_MAX / 200 / 2 );
UpdateVolume(); UpdateVolume();
} }
...@@ -1427,7 +1427,7 @@ void wxVolCtrl::UpdateVolume() ...@@ -1427,7 +1427,7 @@ void wxVolCtrl::UpdateVolume()
audio_volume_t i_volume; audio_volume_t i_volume;
aout_VolumeGet( p_intf, &i_volume ); aout_VolumeGet( p_intf, &i_volume );
int i_gauge_volume = i_volume * 400 * 2 / AOUT_VOLUME_MAX; int i_gauge_volume = i_volume * 200 * 2 / AOUT_VOLUME_MAX;
if( i_gauge_volume == GetValue() ) return; if( i_gauge_volume == GetValue() ) return;
SetValue( i_gauge_volume ); SetValue( i_gauge_volume );
......
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