wall.c: fix alignment when rows or cols are 2 or less.

parent 84266aae
...@@ -348,7 +348,7 @@ static int Init( vout_thread_t *p_vout ) ...@@ -348,7 +348,7 @@ static int Init( vout_thread_t *p_vout )
else else
{ {
i_width = ( i_target_width - i_hstart % i_target_width ); i_width = ( i_target_width - i_hstart % i_target_width );
if( i_col > ( p_vout->p_sys->i_col / 2 ) ) if( i_col >= ( p_vout->p_sys->i_col / 2 ) )
{ {
i_align |= VOUT_ALIGN_LEFT; i_align |= VOUT_ALIGN_LEFT;
i_width -= i_hstart_rounded ? 2: 0; i_width -= i_hstart_rounded ? 2: 0;
...@@ -373,7 +373,7 @@ static int Init( vout_thread_t *p_vout ) ...@@ -373,7 +373,7 @@ static int Init( vout_thread_t *p_vout )
{ {
i_height = ( i_target_height - i_height = ( i_target_height -
i_vstart%i_target_height ); i_vstart%i_target_height );
if( i_row > ( p_vout->p_sys->i_row / 2 ) ) if( i_row >= ( p_vout->p_sys->i_row / 2 ) )
{ {
i_align |= VOUT_ALIGN_TOP; i_align |= VOUT_ALIGN_TOP;
i_height -= i_vstart_rounded ? 2: 0; i_height -= i_vstart_rounded ? 2: 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