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

@@ -210,8 +210,6 @@ _depth_to_gfximage_format(PRInt32 aDepth)
return gfxASurface::ImageFormatARGB32;
case 24:
return gfxASurface::ImageFormatRGB24;
case 16:
return gfxASurface::ImageFormatRGB16_565;
default:
return gfxASurface::ImageFormatUnknown;
}
@@ -222,11 +220,8 @@ _gfximage_to_qformat(gfxASurface::gfxImageFormat aFormat)
{
switch (aFormat) {
case gfxASurface::ImageFormatARGB32:
return QImage::Format_ARGB32_Premultiplied;
case gfxASurface::ImageFormatRGB24:
return QImage::Format_ARGB32;
case gfxASurface::ImageFormatRGB16_565:
return QImage::Format_RGB16;
default:
return QImage::Format_Invalid;
}