comparison libvo/vo_directfb2.c @ 24939:6a2d9f2a19af

10l Diego, revert commit 24966. We do not have policy of restoring bugs when bug is fixed by accident.
author iive
date Sun, 04 Nov 2007 23:39:05 +0000
parents 328a5d99203e
children 11d4bcd96bc3
comparison
equal deleted inserted replaced
24938:328a5d99203e 24939:6a2d9f2a19af
1184 // center image 1184 // center image
1185 1185
1186 if (!frame) { 1186 if (!frame) {
1187 if(mpi->flags&MP_IMGFLAG_PLANAR){ 1187 if(mpi->flags&MP_IMGFLAG_PLANAR){
1188 mpi->planes[0]= dst + yoffset * pitch + xoffset; 1188 mpi->planes[0]= dst + yoffset * pitch + xoffset;
1189 mpi->planes[1]+= (yoffset * pitch) >> (2 + xoffset) >> 1; 1189 mpi->planes[1]+= ((yoffset * pitch) >> 2) + (xoffset >> 1);
1190 mpi->planes[2]+= (yoffset * pitch) >> (2 + xoffset) >> 1; 1190 mpi->planes[2]+= ((yoffset * pitch) >> 2) + (xoffset >> 1);
1191 } else { 1191 } else {
1192 mpi->planes[0]=dst + yoffset * pitch + xoffset * (mpi->bpp >> 3); 1192 mpi->planes[0]=dst + yoffset * pitch + xoffset * (mpi->bpp >> 3);
1193 } 1193 }
1194 } 1194 }
1195 1195