summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qfontengineglyphcache_p.h
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar@trolltech.com>2009-12-09 14:15:35 (GMT)
committerGunnar Sletta <gunnar@trolltech.com>2009-12-09 14:15:35 (GMT)
commit0c30418556d978f730c33aa3bb066961981ccc9b (patch)
tree68a65f43d1152a4e96ae3736edae89309ca608cf /src/gui/text/qfontengineglyphcache_p.h
parent9f3cde38bffb79da82d6248a873a687d37177954 (diff)
downloadQt-0c30418556d978f730c33aa3bb066961981ccc9b.zip
Qt-0c30418556d978f730c33aa3bb066961981ccc9b.tar.gz
Qt-0c30418556d978f730c33aa3bb066961981ccc9b.tar.bz2
Fix crash when rotating cleartype text under gl engine.
Reviewed-by: Eskil
Diffstat (limited to 'src/gui/text/qfontengineglyphcache_p.h')
-rw-r--r--src/gui/text/qfontengineglyphcache_p.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gui/text/qfontengineglyphcache_p.h b/src/gui/text/qfontengineglyphcache_p.h
index e04f4ac..c6112ba 100644
--- a/src/gui/text/qfontengineglyphcache_p.h
+++ b/src/gui/text/qfontengineglyphcache_p.h
@@ -75,17 +75,20 @@ QT_BEGIN_NAMESPACE
class QFontEngineGlyphCache
{
public:
- QFontEngineGlyphCache(const QTransform &matrix) : m_transform(matrix) { }
-
enum Type {
Raster_RGBMask,
Raster_A8,
Raster_Mono
};
+ QFontEngineGlyphCache(const QTransform &matrix, Type type) : m_transform(matrix), m_type(type) { }
+
virtual ~QFontEngineGlyphCache() { }
+ Type cacheType() const { return m_type; }
+
QTransform m_transform;
+ QFontEngineGlyphCache::Type m_type;
};
typedef QHash<void *, QList<QFontEngineGlyphCache *> > GlyphPointerHash;
typedef QHash<int, QList<QFontEngineGlyphCache *> > GlyphIntHash;