]> git.sesse.net Git - vlc/commitdiff
wall.c: fix alignment when rows or cols are 2 or less.
authorSigmund Augdal Helberg <sigmunau@videolan.org>
Tue, 15 Mar 2005 17:18:58 +0000 (17:18 +0000)
committerSigmund Augdal Helberg <sigmunau@videolan.org>
Tue, 15 Mar 2005 17:18:58 +0000 (17:18 +0000)
modules/video_filter/wall.c

index 3d0c309748411a89407ce225200d1eb23caa038e..258b50a0a7796bccd9db8b394badde65d57678ad 100644 (file)
@@ -348,7 +348,7 @@ static int Init( vout_thread_t *p_vout )
             else
             {
                 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_width -= i_hstart_rounded ? 2: 0;
@@ -373,7 +373,7 @@ static int Init( vout_thread_t *p_vout )
             {
                 i_height = ( 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_height -= i_vstart_rounded ? 2: 0;