summaryrefslogtreecommitdiffstats
path: root/src/opengl
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eblomfel@trolltech.com>2009-08-17 13:29:02 (GMT)
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2010-01-14 12:55:45 (GMT)
commit5290c50b240abbcd0477df1db1808d33b96ca856 (patch)
treef458300ef95d7c51f70d82dfec0b244faad5b14a /src/opengl
parent91e96d6c730aac4accef64e5eaab1b289939ef8e (diff)
downloadQt-5290c50b240abbcd0477df1db1808d33b96ca856.zip
Qt-5290c50b240abbcd0477df1db1808d33b96ca856.tar.gz
Qt-5290c50b240abbcd0477df1db1808d33b96ca856.tar.bz2
Support transformations in drawStaticText() and optimize for space
1. Support transformations on the painter in drawStaticText(). Transforming the painter will cause the text layout to be recalculated, except for translations, which are handled by shifting the position of the text items. 2. Make const length arrays of the internal data in QStaticTextItem in order to minimize the memory consumption.
Diffstat (limited to 'src/opengl')
-rw-r--r--src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp b/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp
index 02a5246..e4fe84f 100644
--- a/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp
+++ b/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp
@@ -1272,7 +1272,7 @@ void QGL2PaintEngineExPrivate::drawCachedGlyphs(const QPointF &p, QFontEngineGly
}
cache->setPaintEnginePrivate(this);
- cache->populate(ti.fontEngine, glyphs, positions);
+ cache->populate(ti.fontEngine, glyphs.size(), glyphs.constData(), positions.constData());
if (cache->width() == 0 || cache->height() == 0)
return;