Commit cdfa0c72 authored by zorglub's avatar zorglub
Browse files

Remember adjust settings when there is a vout so that settings are applied as...

Remember adjust settings when there is a vout so that settings are applied as soon as filter is re-enabled
parent 63eba9ef
...@@ -864,26 +864,35 @@ void ExtraPanel::OnAdjustUpdate( wxScrollEvent &event) ...@@ -864,26 +864,35 @@ void ExtraPanel::OnAdjustUpdate( wxScrollEvent &event)
case Hue_Event: case Hue_Event:
val.i_int = event.GetPosition(); val.i_int = event.GetPosition();
var_Set( p_vout, "hue", val ); var_Set( p_vout, "hue", val );
config_PutInt( p_intf , "hue" , event.GetPosition() );
break; break;
case Saturation_Event: case Saturation_Event:
val.f_float = (float)event.GetPosition() / 100; val.f_float = (float)event.GetPosition() / 100;
var_Set( p_vout, "saturation", val ); var_Set( p_vout, "saturation", val );
config_PutFloat( p_intf , "saturation" ,
(float)event.GetPosition()/100 );
break; break;
case Brightness_Event: case Brightness_Event:
val.f_float = (float)event.GetPosition() / 100; val.f_float = (float)event.GetPosition() / 100;
var_Set( p_vout, "brightness", val ); var_Set( p_vout, "brightness", val );
config_PutFloat( p_intf , "brightness" ,
(float)event.GetPosition()/100 );
break; break;
case Contrast_Event: case Contrast_Event:
val.f_float = (float)event.GetPosition() / 100; val.f_float = (float)event.GetPosition() / 100;
var_Set( p_vout, "contrast", val ); var_Set( p_vout, "contrast", val );
config_PutFloat( p_intf , "contrast" ,
(float)event.GetPosition()/100 );
break; break;
case Gamma_Event: case Gamma_Event:
val.f_float = (float)event.GetPosition() / 10; val.f_float = (float)event.GetPosition() / 10;
var_Set( p_vout, "gamma", val ); var_Set( p_vout, "gamma", val );
config_PutFloat( p_intf , "gamma" ,
(float)event.GetPosition()/10 );
break; break;
} }
vlc_object_release(p_vout); vlc_object_release(p_vout);
......
Supports Markdown
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