[vlc-devel] commit: logo: inform listeners when picture has been moved ( Jean-Paul Saman )
git version control
git at videolan.org
Thu Feb 11 11:37:08 CET 2010
vlc | branch: master | Jean-Paul Saman <jean-paul.saman at m2x.nl> | Fri Feb 5 14:14:25 2010 +0100| [2f58aad41bc538569712f7d528dc7cd014d81dd4] | committer: Jean-Paul Saman
logo: inform listeners when picture has been moved
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2f58aad41bc538569712f7d528dc7cd014d81dd4
---
modules/video_filter/logo.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/modules/video_filter/logo.c b/modules/video_filter/logo.c
index 6eba7a8..37f8eee 100644
--- a/modules/video_filter/logo.c
+++ b/modules/video_filter/logo.c
@@ -231,7 +231,6 @@ static int OpenCommon( vlc_object_t *p_this, bool b_sub )
return VLC_EGENERIC;
}
-
/* */
p_filter->p_sys = p_sys = malloc( sizeof( *p_sys ) );
if( !p_sys )
@@ -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_sys->i_pos_y = __MIN( __MAX( p_sys->i_pos_y + i_dy, 0 ),
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 )
More information about the vlc-devel
mailing list