summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar@trolltech.com>2010-03-15 06:30:58 (GMT)
committerGunnar Sletta <gunnar@trolltech.com>2010-03-15 06:30:58 (GMT)
commitee3841ae90156f991717376f34921de97e47097c (patch)
tree913b75116d37f1c5cde78c2d6e000085274a59c1 /src
parent981515b84df18d3f4bde5a8de33ea6a3a9614073 (diff)
downloadQt-ee3841ae90156f991717376f34921de97e47097c.zip
Qt-ee3841ae90156f991717376f34921de97e47097c.tar.gz
Qt-ee3841ae90156f991717376f34921de97e47097c.tar.bz2
Fixed wasted space in the texture cache.
We were using the height of the texture to position the next row, rather than just adding the rowHeight. This used to work when the texture cached grew by rowHeight, now it grows to next power of two... Reviewed-by: Eskil
Diffstat (limited to 'src')
-rw-r--r--src/gui/painting/qtextureglyphcache.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/painting/qtextureglyphcache.cpp b/src/gui/painting/qtextureglyphcache.cpp
index edbf580..4ca0c3a 100644
--- a/src/gui/painting/qtextureglyphcache.cpp
+++ b/src/gui/painting/qtextureglyphcache.cpp
@@ -136,7 +136,7 @@ void QTextureGlyphCache::populate(QFontEngine *fontEngine, int numGlyphs, const
if (m_cx + c.w > m_w) {
// no room on the current line, start new glyph strip
m_cx = 0;
- m_cy = m_h;
+ m_cy += rowHeight;
}
if (m_cy + c.h > m_h) {
int new_height = m_h*2;