Commit 865b74ef authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* Show the true volume range (0-400%) instead of 0-200%. The wxwidgets volume...

* Show the true volume range (0-400%) instead of 0-200%. The wxwidgets volume control goes only halfway i believe. This shouldn't change any behaviour, it should just change the value that is represented to the USER. refs #250
parent aaa9026b
...@@ -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() * 200 / GetClientSize().GetWidth(); int i_volume = event.GetX() * 400 / GetClientSize().GetWidth();
aout_VolumeSet( p_intf, i_volume * AOUT_VOLUME_MAX / 200 / 2 ); aout_VolumeSet( p_intf, i_volume * AOUT_VOLUME_MAX / 400 / 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 * 200 * 2 / AOUT_VOLUME_MAX; int i_gauge_volume = i_volume * 400 * 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