summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qpaintengine_raster.cpp
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar@trolltech.com>2009-12-10 09:41:53 (GMT)
committerGunnar Sletta <gunnar@trolltech.com>2009-12-10 09:41:53 (GMT)
commitab5d00edea76d3b1d38d6e7e59159042ec69f2f2 (patch)
tree43acf3c547a465e657e4621616562f7f9e3ce5fb /src/gui/painting/qpaintengine_raster.cpp
parent16de24d638deafb6e985b531fdf0c15691c0b7b4 (diff)
downloadQt-ab5d00edea76d3b1d38d6e7e59159042ec69f2f2.zip
Qt-ab5d00edea76d3b1d38d6e7e59159042ec69f2f2.tar.gz
Qt-ab5d00edea76d3b1d38d6e7e59159042ec69f2f2.tar.bz2
Clean up the QFontEngine glyphcaching code to not crash and be more tidy
Reviewed-by: Eskil
Diffstat (limited to 'src/gui/painting/qpaintengine_raster.cpp')
-rw-r--r--src/gui/painting/qpaintengine_raster.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/painting/qpaintengine_raster.cpp b/src/gui/painting/qpaintengine_raster.cpp
index 4a72434..aa3b89e 100644
--- a/src/gui/painting/qpaintengine_raster.cpp
+++ b/src/gui/painting/qpaintengine_raster.cpp
@@ -3018,10 +3018,10 @@ void QRasterPaintEngine::drawCachedGlyphs(const QPointF &p, const QTextItemInt &
QFontEngineGlyphCache::Type glyphType = ti.fontEngine->glyphFormat >= 0 ? QFontEngineGlyphCache::Type(ti.fontEngine->glyphFormat) : d->glyphCacheType;
QImageTextureGlyphCache *cache =
- (QImageTextureGlyphCache *) ti.fontEngine->glyphCache(glyphType, s->matrix);
+ (QImageTextureGlyphCache *) ti.fontEngine->glyphCache(0, glyphType, s->matrix);
if (!cache) {
cache = new QImageTextureGlyphCache(glyphType, s->matrix);
- ti.fontEngine->setGlyphCache(glyphType, cache);
+ ti.fontEngine->setGlyphCache(0, cache);
}
cache->populate(ti, glyphs, positions);