diff options
author | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2009-06-18 15:04:46 (GMT) |
---|---|---|
committer | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2009-06-18 15:07:04 (GMT) |
commit | f9f08de9d41fd55d9c7d01578191ef5d4099c9e6 (patch) | |
tree | e6167fa1475a201c887f46f3b0c411f3e92d645a /src/opengl/gl2paintengineex | |
parent | 396eeb3f71c1c7edd861da1c8a8ec3086348502e (diff) | |
download | Qt-f9f08de9d41fd55d9c7d01578191ef5d4099c9e6.zip Qt-f9f08de9d41fd55d9c7d01578191ef5d4099c9e6.tar.gz Qt-f9f08de9d41fd55d9c7d01578191ef5d4099c9e6.tar.bz2 |
Use QTransform more efficiently.
Reviewed-by: Samuel
Diffstat (limited to 'src/opengl/gl2paintengineex')
-rw-r--r-- | src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp b/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp index 75d8a56..6ff0c53 100644 --- a/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp +++ b/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp @@ -1063,8 +1063,7 @@ void QGL2PaintEngineExPrivate::drawCachedGlyphs(const QPointF &p, const QTextIte QVarLengthArray<QFixedPoint> positions; QVarLengthArray<glyph_t> glyphs; - QTransform matrix; - matrix.translate(p.x(), p.y()); + QTransform matrix = QTransform::fromTranslate(p.x(), p.y()); ti.fontEngine->getGlyphPositions(ti.glyphs, matrix, ti.flags, glyphs, positions); QFontEngineGlyphCache::Type glyphType = ti.fontEngine->glyphFormat >= 0 |