]> git.sesse.net Git - vlc/commitdiff
wall.c: do not assume all windows are equal width if they are not.
authorSigmund Augdal Helberg <sigmunau@videolan.org>
Fri, 18 Feb 2005 15:13:08 +0000 (15:13 +0000)
committerSigmund Augdal Helberg <sigmunau@videolan.org>
Fri, 18 Feb 2005 15:13:08 +0000 (15:13 +0000)
modules/video_filter/wall.c

index 0e8a8b9709ed46bd45cb343425d0b439ab404e58..a3d5971b168be7bbfdcaf9380f1dc68cea8b34a8 100644 (file)
@@ -368,7 +368,7 @@ static void Render( vout_thread_t *p_vout, picture_t *p_pic )
                 for( i_plane = 0 ; i_plane < p_pic->i_planes ; i_plane++ )
                 {
                     pi_left_skip[i_plane] +=
-                        p_vout->p_sys->pp_vout[ i_vout ].i_width
+                    p_vout->p_sys->pp_vout[ i_col == p_vout->p_sys->i_col-1?i_vout-1:i_vout ].i_width
                          * p_pic->p[i_plane].i_pitch / p_vout->output.i_width;
                 }
                 i_vout++;