[vlc-devel] commit: Cosmetics: use var_GetBool instead of var_Get. (JP Dinger )
git version control
git at videolan.org
Wed May 27 09:04:16 CEST 2009
vlc | branch: master | JP Dinger <jpd at videolan.org> | Tue May 26 18:02:31 2009 +0200| [0bae6cb96504f9544bc19527826ba001ac591f2d] | committer: JP Dinger
Cosmetics: use var_GetBool instead of var_Get.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0bae6cb96504f9544bc19527826ba001ac591f2d
---
modules/video_output/msw/direct3d.c | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/modules/video_output/msw/direct3d.c b/modules/video_output/msw/direct3d.c
index 85d2f16..7aaa410 100644
--- a/modules/video_output/msw/direct3d.c
+++ b/modules/video_output/msw/direct3d.c
@@ -449,13 +449,11 @@ static int Manage( vout_thread_t *p_vout )
*/
if( p_vout->p_sys->b_on_top_change )
{
- vlc_value_t val;
HMENU hMenu = GetSystemMenu( p_vout->p_sys->hwnd, FALSE );
-
- var_Get( p_vout, "video-on-top", &val );
+ bool b = var_GetBool( p_vout, "video-on-top" );
/* Set the window on top if necessary */
- if( val.b_bool && !( GetWindowLong( p_vout->p_sys->hwnd, GWL_EXSTYLE )
+ if( b && !( GetWindowLong( p_vout->p_sys->hwnd, GWL_EXSTYLE )
& WS_EX_TOPMOST ) )
{
CheckMenuItem( hMenu, IDM_TOGGLE_ON_TOP,
@@ -465,7 +463,7 @@ static int Manage( vout_thread_t *p_vout )
}
else
/* The window shouldn't be on top */
- if( !val.b_bool && ( GetWindowLong( p_vout->p_sys->hwnd, GWL_EXSTYLE )
+ if( !b && ( GetWindowLong( p_vout->p_sys->hwnd, GWL_EXSTYLE )
& WS_EX_TOPMOST ) )
{
CheckMenuItem( hMenu, IDM_TOGGLE_ON_TOP,
More information about the vlc-devel
mailing list