[vlc-devel] commit: sdl: simplifications. ( Rémi Duraffort )

git version control git at videolan.org
Tue Mar 17 22:05:53 CET 2009


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Tue Mar 17 21:06:57 2009 +0100| [be4ffc8bbbdec108e920c0b775e0c7f1c03ce1d3] | committer: Rémi Duraffort 

sdl: simplifications.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=be4ffc8bbbdec108e920c0b775e0c7f1c03ce1d3
---

 modules/video_output/sdl.c |   12 +++---------
 1 files changed, 3 insertions(+), 9 deletions(-)

diff --git a/modules/video_output/sdl.c b/modules/video_output/sdl.c
index 055524d..ac19b28 100644
--- a/modules/video_output/sdl.c
+++ b/modules/video_output/sdl.c
@@ -408,9 +408,7 @@ static int Manage( vout_thread_t *p_vout )
                 val.i_int = p_vout->fmt_in.i_visible_height;
 
             var_Set( p_vout, "mouse-y", val );
-
-            val.b_bool = true;
-            var_Set( p_vout, "mouse-moved", val );
+            var_SetBool( p_vout, "mouse-moved", true );
 
             if( p_vout->p_sys->b_cursor )
             {
@@ -437,9 +435,7 @@ static int Manage( vout_thread_t *p_vout )
                     var_Set( p_vout, "mouse-button-down", val );
 
                     var_SetBool( p_vout, "mouse-clicked", true );
-
-                    val.b_bool = false;
-                    var_Set( p_vout->p_libvlc, "intf-popupmenu", val );
+                    var_SetBool( p_vout->p_libvlc, "intf-popupmenu", false );
                 }
                 break;
 
@@ -449,7 +445,6 @@ static int Manage( vout_thread_t *p_vout )
                     val.i_int &= ~2;
                     var_Set( p_vout, "mouse-button-down", val );
 
-                    vlc_value_t val;
                     var_Get( p_vout->p_libvlc, "intf-show", &val );
                     val.b_bool = !val.b_bool;
                     var_Set( p_vout->p_libvlc, "intf-show", val );
@@ -462,8 +457,7 @@ static int Manage( vout_thread_t *p_vout )
                     val.i_int &= ~4;
                     var_Set( p_vout, "mouse-button-down", val );
 
-                    val.b_bool = true;
-                    var_Set( p_vout->p_libvlc, "intf-popupmenu", val );
+                    var_SetBool( p_vout->p_libvlc, "intf-popupmenu", true );
                 }
                 break;
             }




More information about the vlc-devel mailing list