mirror of
https://code.videolan.org/videolan/vlc
synced 2024-08-31 06:46:39 +02:00
use var_ToggleBool when applicable.
This commit is contained in:
parent
e48f48a897
commit
ffde9d55d9
@ -774,13 +774,10 @@ static long FAR PASCAL DirectXEventProc( HWND hwnd, UINT message,
|
||||
{
|
||||
case IDM_TOGGLE_ON_TOP: /* toggle the "on top" status */
|
||||
{
|
||||
vlc_value_t val;
|
||||
msg_Dbg( p_vout, "WinProc WM_SYSCOMMAND: IDM_TOGGLE_ON_TOP");
|
||||
|
||||
/* Change the current value */
|
||||
var_Get( p_vout, "video-on-top", &val );
|
||||
val.b_bool = !val.b_bool;
|
||||
var_Set( p_vout, "video-on-top", val );
|
||||
var_ToggleBool( p_vout, "video-on-top" );
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
@ -1121,9 +1121,7 @@ static int ManageVideo( vout_thread_t *p_vout )
|
||||
val.i_int &= ~2;
|
||||
var_Set( p_vout, "mouse-button-down", 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 );
|
||||
var_ToggleBool( p_vout->p_libvlc, "intf-show" );
|
||||
}
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user