Commit 0bae6cb9 authored by JP Dinger's avatar JP Dinger

Cosmetics: use var_GetBool instead of var_Get.

parent e15abb61
...@@ -449,13 +449,11 @@ static int Manage( vout_thread_t *p_vout ) ...@@ -449,13 +449,11 @@ static int Manage( vout_thread_t *p_vout )
*/ */
if( p_vout->p_sys->b_on_top_change ) if( p_vout->p_sys->b_on_top_change )
{ {
vlc_value_t val;
HMENU hMenu = GetSystemMenu( p_vout->p_sys->hwnd, FALSE ); HMENU hMenu = GetSystemMenu( p_vout->p_sys->hwnd, FALSE );
bool b = var_GetBool( p_vout, "video-on-top" );
var_Get( p_vout, "video-on-top", &val );
/* Set the window on top if necessary */ /* 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 ) ) & WS_EX_TOPMOST ) )
{ {
CheckMenuItem( hMenu, IDM_TOGGLE_ON_TOP, CheckMenuItem( hMenu, IDM_TOGGLE_ON_TOP,
...@@ -465,7 +463,7 @@ static int Manage( vout_thread_t *p_vout ) ...@@ -465,7 +463,7 @@ static int Manage( vout_thread_t *p_vout )
} }
else else
/* The window shouldn't be on top */ /* 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 ) ) & WS_EX_TOPMOST ) )
{ {
CheckMenuItem( hMenu, IDM_TOGGLE_ON_TOP, CheckMenuItem( hMenu, IDM_TOGGLE_ON_TOP,
......
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