Bug 545632 - Add 16bpp format support enabler. r=jmuizelaar

This commit is contained in:
Oleg Romashin
2010-06-11 05:33:22 -04:00
parent 69de83f484
commit 6f4af0a40d
9 changed files with 65 additions and 47 deletions

View File

@@ -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;
}