Backed out changeset 2959eddcd018, to fix oranges

This commit is contained in:
Oleg Romashin
2010-06-11 08:35:26 -04:00
parent 7c22137358
commit ee4cb7f260
9 changed files with 47 additions and 65 deletions

View File

@@ -188,7 +188,7 @@ BasicPlanarYCbCrImage::GetAsSurface()
}
nsRefPtr<gfxImageSurface> imgSurface =
new gfxImageSurface(mBuffer, mSize,
mSize.width * gfxASurface::BytePerPixelFromFormat(gfxASurface::ImageFormatRGB24),
mSize.width * 4,
gfxASurface::ImageFormatRGB24);
if (!imgSurface) {
return nsnull;