diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2011-01-11 12:45:01 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2011-01-11 12:45:01 (GMT) |
commit | d33fd349c8a22b2e4a6d9bc1bf4defcb2a047744 (patch) | |
tree | 627f24fe022c32360f6f983d2565ed44b4fe8474 /src | |
parent | 9fe595e3aed6a9dd068c95c898c0fd4496a7289c (diff) | |
parent | e0ed2387bc818f11b16460b0150d4ea75bcf37d6 (diff) | |
download | Qt-d33fd349c8a22b2e4a6d9bc1bf4defcb2a047744.zip Qt-d33fd349c8a22b2e4a6d9bc1bf4defcb2a047744.tar.gz Qt-d33fd349c8a22b2e4a6d9bc1bf4defcb2a047744.tar.bz2 |
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-s60-public into 4.7-integration
* '4.7' of scm.dev.nokia.troll.no:qt/qt-s60-public:
OpenVG paint engine doesn't draw glyphs well to non-integer offsets.
Diffstat (limited to 'src')
-rw-r--r-- | src/openvg/qpaintengine_vg.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/openvg/qpaintengine_vg.cpp b/src/openvg/qpaintengine_vg.cpp index d2304e7..09cbc36 100644 --- a/src/openvg/qpaintengine_vg.cpp +++ b/src/openvg/qpaintengine_vg.cpp @@ -3539,8 +3539,8 @@ void QVGPaintEngine::drawStaticTextItem(QStaticTextItem *textItem) QVarLengthArray<VGfloat> adjustments_x(numGlyphs); QVarLengthArray<VGfloat> adjustments_y(numGlyphs); for (int i = 1; i < numGlyphs; ++i) { - adjustments_x[i-1] = (positions[i].x - positions[i-1].x).toReal(); - adjustments_y[i-1] = (positions[i].y - positions[i-1].y).toReal(); + adjustments_x[i-1] = (positions[i].x - positions[i-1].x).round().toReal(); + adjustments_y[i-1] = (positions[i].y - positions[i-1].y).round().toReal(); } // Set the glyph drawing origin. |