Commit be4ffc8b authored by Rémi Duraffort's avatar Rémi Duraffort

sdl: simplifications.

parent 0eeed6e9
...@@ -408,9 +408,7 @@ static int Manage( vout_thread_t *p_vout ) ...@@ -408,9 +408,7 @@ static int Manage( vout_thread_t *p_vout )
val.i_int = p_vout->fmt_in.i_visible_height; val.i_int = p_vout->fmt_in.i_visible_height;
var_Set( p_vout, "mouse-y", val ); var_Set( p_vout, "mouse-y", val );
var_SetBool( p_vout, "mouse-moved", true );
val.b_bool = true;
var_Set( p_vout, "mouse-moved", val );
if( p_vout->p_sys->b_cursor ) if( p_vout->p_sys->b_cursor )
{ {
...@@ -437,9 +435,7 @@ static int Manage( vout_thread_t *p_vout ) ...@@ -437,9 +435,7 @@ static int Manage( vout_thread_t *p_vout )
var_Set( p_vout, "mouse-button-down", val ); var_Set( p_vout, "mouse-button-down", val );
var_SetBool( p_vout, "mouse-clicked", true ); var_SetBool( p_vout, "mouse-clicked", true );
var_SetBool( p_vout->p_libvlc, "intf-popupmenu", false );
val.b_bool = false;
var_Set( p_vout->p_libvlc, "intf-popupmenu", val );
} }
break; break;
...@@ -449,7 +445,6 @@ static int Manage( vout_thread_t *p_vout ) ...@@ -449,7 +445,6 @@ static int Manage( vout_thread_t *p_vout )
val.i_int &= ~2; val.i_int &= ~2;
var_Set( p_vout, "mouse-button-down", val ); var_Set( p_vout, "mouse-button-down", val );
vlc_value_t val;
var_Get( p_vout->p_libvlc, "intf-show", &val ); var_Get( p_vout->p_libvlc, "intf-show", &val );
val.b_bool = !val.b_bool; val.b_bool = !val.b_bool;
var_Set( p_vout->p_libvlc, "intf-show", val ); var_Set( p_vout->p_libvlc, "intf-show", val );
...@@ -462,8 +457,7 @@ static int Manage( vout_thread_t *p_vout ) ...@@ -462,8 +457,7 @@ static int Manage( vout_thread_t *p_vout )
val.i_int &= ~4; val.i_int &= ~4;
var_Set( p_vout, "mouse-button-down", val ); var_Set( p_vout, "mouse-button-down", val );
val.b_bool = true; var_SetBool( p_vout->p_libvlc, "intf-popupmenu", true );
var_Set( p_vout->p_libvlc, "intf-popupmenu", val );
} }
break; break;
} }
......
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