+ else if( i_action == ACTIONID_LEAVE_FULLSCREEN )
+ {
+ if( p_vout && var_GetBool( p_vout, "fullscreen" ) )
+ {
+ var_SetBool( p_vout, "fullscreen", false );
+ }
+ }
+ else if( i_action == ACTIONID_ZOOM_QUARTER ||
+ i_action == ACTIONID_ZOOM_HALF ||
+ i_action == ACTIONID_ZOOM_ORIGINAL ||
+ i_action == ACTIONID_ZOOM_DOUBLE )
+ {
+ if( p_vout )
+ {
+ if( i_action == ACTIONID_ZOOM_QUARTER )
+ val.f_float = 0.25;
+ if( i_action == ACTIONID_ZOOM_HALF )
+ val.f_float = 0.5;
+ if( i_action == ACTIONID_ZOOM_ORIGINAL )
+ val.f_float = 1;
+ if( i_action == ACTIONID_ZOOM_DOUBLE )
+ val.f_float = 2;
+ var_Set( p_vout, "zoom", val );
+ }
+ }
+ else if( i_action == ACTIONID_WALLPAPER )
+ {
+ if( p_vout )
+ {
+ var_Get( p_vout, "directx-wallpaper", &val );
+ val.b_bool = !val.b_bool;
+ var_Set( p_vout, "directx-wallpaper", val );
+ }
+ else
+ {
+ var_Get( p_playlist, "directx-wallpaper", &val );
+ val.b_bool = !val.b_bool;
+ var_Set( p_playlist, "directx-wallpaper", val );
+ }
+ }
+ /* Playlist actions */
+ else if( i_action == ACTIONID_LOOP )
+ {
+ /* Toggle Normal -> Loop -> Repeat -> Normal ... */
+ vlc_value_t val2;
+ var_Get( p_playlist, "loop", &val );
+ var_Get( p_playlist, "repeat", &val2 );
+ if( val2.b_bool == true )
+ {
+ val.b_bool = false;
+ val2.b_bool = false;
+ }
+ else if( val.b_bool == true )
+ {
+ val.b_bool = false;
+ val2.b_bool = true;
+ }
+ else
+ {
+ val.b_bool = true;
+ }
+ var_Set( p_playlist, "loop", val );
+ var_Set( p_playlist, "repeat", val2 );
+ }
+ else if( i_action == ACTIONID_RANDOM )
+ {
+ var_Get( p_playlist, "random", &val );
+ val.b_bool = !val.b_bool;
+ var_Set( p_playlist, "random", val );
+ }