Skip to content

Commit

Permalink
DirectFB: Use correct pixel format for Texture Glyph Cache
Browse files Browse the repository at this point in the history
QImage::Format_Indexed8 -> QImage::Format_Alpha8

Change-Id: I7faa7c9d2cb20306f63a2522e7fa78736b9ee583
Task-number: QTBUG-47490
Reviewed-by: Laszlo Agocs <[email protected]>
  • Loading branch information
nezticle committed Oct 12, 2015
1 parent 2463b44 commit 2a1ea8f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/gui/painting/qtextureglyphcache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/platforms/directfb/qdirectfbblitter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 2a1ea8f

Please sign in to comment.