DirectFB: Use correct pixel format for Texture Glyph Cache
QImage::Format_Indexed8 -> QImage::Format_Alpha8 Change-Id: I7faa7c9d2cb20306f63a2522e7fa78736b9ee583 Task-number: QTBUG-47490 Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>bb10
parent
2463b4452d
commit
2a1ea8f13b
|
|
@ -286,9 +286,9 @@ void QImageTextureGlyphCache::createTextureData(int width, int height)
|
|||
case QFontEngine::Format_Mono:
|
||||
m_image = QImage(width, height, QImage::Format_Mono);
|
||||
break;
|
||||
case QFontEngine::Format_A8: {
|
||||
case QFontEngine::Format_A8:
|
||||
m_image = QImage(width, height, QImage::Format_Alpha8);
|
||||
break; }
|
||||
break;
|
||||
case QFontEngine::Format_A32:
|
||||
m_image = QImage(width, height, QImage::Format_RGB32);
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -473,7 +473,7 @@ IDirectFBSurface *QDirectFbTextureGlyphCache::sourceSurface()
|
|||
case QImage::Format_Mono:
|
||||
desc.pixelformat = DSPF_A1;
|
||||
break;
|
||||
case QImage::Format_Indexed8:
|
||||
case QImage::Format_Alpha8:
|
||||
desc.pixelformat = DSPF_A8;
|
||||
break;
|
||||
default:
|
||||
|
|
|
|||
Loading…
Reference in New Issue