diff options
author | Thiago Macieira <thiago.macieira@nokia.com> | 2010-04-22 08:15:08 (GMT) |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2010-04-22 08:15:08 (GMT) |
commit | 27688a5e317f6602752eaea257ba46abbc9acf44 (patch) | |
tree | 2af027e911f2329424e35fd79b491f11c140b6e9 /src/openvg/qpaintengine_vg.cpp | |
parent | 801794e843aeb8de04649cfbdd07bd0ee04c72ce (diff) | |
download | Qt-27688a5e317f6602752eaea257ba46abbc9acf44.zip Qt-27688a5e317f6602752eaea257ba46abbc9acf44.tar.gz Qt-27688a5e317f6602752eaea257ba46abbc9acf44.tar.bz2 |
Attempt at fixing compile failure introduced by 4.6 merge in qpaintengine_vg.cpp
Diffstat (limited to 'src/openvg/qpaintengine_vg.cpp')
-rw-r--r-- | src/openvg/qpaintengine_vg.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/openvg/qpaintengine_vg.cpp b/src/openvg/qpaintengine_vg.cpp index 4b4333b..0855da2 100644 --- a/src/openvg/qpaintengine_vg.cpp +++ b/src/openvg/qpaintengine_vg.cpp @@ -3292,7 +3292,7 @@ void QVGPaintEngine::drawTextItem(const QPointF &p, const QTextItem &textItem) ti.fontEngine->getGlyphPositions (ti.glyphs, matrix, ti.flags, glyphs, positions); - if (!drawCachedGlyphs(glyphs.size(), glyphs.data(), ti.font(), ti.fontEngine, p)) + if (!drawCachedGlyphs(glyphs.size(), glyphs.data(), ti.font(), ti.fontEngine, p, ti.renderFlags())) QPaintEngineEx::drawTextItem(p, textItem); #else // OpenGL 1.0 does not have support for VGFont and glyphs, @@ -3308,7 +3308,7 @@ void QVGPaintEngine::drawStaticTextItem(QStaticTextItem *textItem) } bool QVGPaintEngine::drawCachedGlyphs(int numGlyphs, const glyph_t *glyphs, const QFont &font, - QFontEngine *fontEngine, const QPointF &p) + QFontEngine *fontEngine, const QPointF &p, QTextItem::RenderFlags renderFlags) { #if !defined(QVG_NO_DRAW_GLYPHS) Q_D(QVGPaintEngine); @@ -3361,7 +3361,7 @@ void QVGPaintEngine::drawStaticTextItem(QStaticTextItem *textItem) // Draw the glyphs. We need to fill with the brush associated with // the Qt pen, not the Qt brush. d->ensureBrush(state()->pen.brush()); - if (ti.renderFlags() & QTextItem::RightToLeft) { + if (renderFlags & QTextItem::RightToLeft) { for (int index = numGlyphs - 1; index >= 0; --index) vgDrawGlyph(glyphCache->font, glyphs[index], VG_FILL_PATH, VG_TRUE); } else { |