Commit ddada0ed authored by Jean-Paul Saman's avatar Jean-Paul Saman

Small cleanup.

parent bfefee70
...@@ -201,18 +201,18 @@ static int CreateFilter ( vlc_object_t *p_this ) ...@@ -201,18 +201,18 @@ static int CreateFilter ( vlc_object_t *p_this )
/* Check if menu position was overridden */ /* Check if menu position was overridden */
p_filter->p_sys->b_absolute = VLC_TRUE; p_filter->p_sys->b_absolute = VLC_TRUE;
if( i_posx < 0 || i_posy < 0) if( (i_posx < 0) || (i_posy < 0) )
{ {
p_filter->p_sys->b_absolute = VLC_FALSE; p_filter->p_sys->b_absolute = VLC_FALSE;
p_filter->p_sys->p_menu->i_x = 0; p_filter->p_sys->p_menu->i_x = 0;
p_filter->p_sys->p_menu->i_y = 0; p_filter->p_sys->p_menu->i_y = 0;
} }
else if( i_posx >= 0 || i_posy >= 0 ) else if( (i_posx >= 0) || (i_posy >= 0) )
{ {
p_filter->p_sys->p_menu->i_x = i_posx; p_filter->p_sys->p_menu->i_x = i_posx;
p_filter->p_sys->p_menu->i_y = i_posy; p_filter->p_sys->p_menu->i_y = i_posy;
} }
else if( p_filter->p_sys->p_menu->i_x < 0 || p_filter->p_sys->p_menu->i_y < 0 ) else if( (p_filter->p_sys->p_menu->i_x < 0) || (p_filter->p_sys->p_menu->i_y < 0) )
{ {
p_filter->p_sys->b_absolute = VLC_FALSE; p_filter->p_sys->b_absolute = VLC_FALSE;
p_filter->p_sys->p_menu->i_x = 0; p_filter->p_sys->p_menu->i_x = 0;
......
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