Backed out changeset 2959eddcd018, to fix oranges
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user