set glyph cache type to QFontEngineGlyphCache::Raster_A8 only if the surface is not in mono format

git blame has nothing (stealth changes done upstream, not the first):
30fd22b957/src/gui/painting/qpaintengine_raster.cpp

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2021-12-21 11:04:12 +02:00
parent 03e20f02ae
commit 68468f7802

View file

@ -296,9 +296,9 @@ bool QRasterPaintEngine::begin(QPaintDevice *device)
}
#endif
d->glyphCacheType = QFontEngineGlyphCache::Raster_A8;
if (d->mono_surface)
d->glyphCacheType = QFontEngineGlyphCache::Raster_Mono;
d->glyphCacheType = QFontEngineGlyphCache::Raster_A8;
setActive(true);
return true;