Bug 545632 - Add 16bpp format support enabler. r=jmuizelaar
This commit is contained in:
@@ -210,6 +210,8 @@ _depth_to_gfximage_format(PRInt32 aDepth)
|
||||
return gfxASurface::ImageFormatARGB32;
|
||||
case 24:
|
||||
return gfxASurface::ImageFormatRGB24;
|
||||
case 16:
|
||||
return gfxASurface::ImageFormatRGB16_565;
|
||||
default:
|
||||
return gfxASurface::ImageFormatUnknown;
|
||||
}
|
||||
@@ -220,8 +222,11 @@ _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