Commit 2f58aad4 authored by Jean-Paul Saman's avatar Jean-Paul Saman

logo: inform listeners when picture has been moved

parent 114b922f
...@@ -231,7 +231,6 @@ static int OpenCommon( vlc_object_t *p_this, bool b_sub ) ...@@ -231,7 +231,6 @@ static int OpenCommon( vlc_object_t *p_this, bool b_sub )
return VLC_EGENERIC; return VLC_EGENERIC;
} }
/* */ /* */
p_filter->p_sys = p_sys = malloc( sizeof( *p_sys ) ); p_filter->p_sys = p_sys = malloc( sizeof( *p_sys ) );
if( !p_sys ) if( !p_sys )
...@@ -534,6 +533,14 @@ static int Mouse( filter_t *p_filter, vlc_mouse_t *p_mouse, ...@@ -534,6 +533,14 @@ static int Mouse( filter_t *p_filter, vlc_mouse_t *p_mouse,
p_filter->fmt_in.video.i_width - i_logo_w ); p_filter->fmt_in.video.i_width - i_logo_w );
p_sys->i_pos_y = __MIN( __MAX( p_sys->i_pos_y + i_dy, 0 ), p_sys->i_pos_y = __MIN( __MAX( p_sys->i_pos_y + i_dy, 0 ),
p_filter->fmt_in.video.i_height - i_logo_h ); p_filter->fmt_in.video.i_height - i_logo_h );
/* object under mouse has moved */
var_SetBool( p_filter->p_parent, "mouse-object", true );
}
else if( b_over )
{
/* object under mouse stoped moving */
var_SetBool( p_filter->p_parent, "mouse-object", false );
} }
if( p_sys->b_mouse_grab || b_over ) if( p_sys->b_mouse_grab || b_over )
......
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