diff options
author | aavit <qt-info@nokia.com> | 2011-05-19 14:05:02 (GMT) |
---|---|---|
committer | aavit <qt-info@nokia.com> | 2011-05-19 14:08:01 (GMT) |
commit | 7cfd06ee22a875d7658ce6668b418e6f8c6f6480 (patch) | |
tree | 1c33864573710d5f15be8758a39985f097de33c2 /src/gui/painting/qpaintengine_raster.cpp | |
parent | 14bf7c3761efe208ce19047b8ddc3f811a63a437 (diff) | |
download | Qt-7cfd06ee22a875d7658ce6668b418e6f8c6f6480.zip Qt-7cfd06ee22a875d7658ce6668b418e6f8c6f6480.tar.gz Qt-7cfd06ee22a875d7658ce6668b418e6f8c6f6480.tar.bz2 |
Compilation fix of f8e8583
Diffstat (limited to 'src/gui/painting/qpaintengine_raster.cpp')
-rw-r--r-- | src/gui/painting/qpaintengine_raster.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/painting/qpaintengine_raster.cpp b/src/gui/painting/qpaintengine_raster.cpp index b730be3..7dda940 100644 --- a/src/gui/painting/qpaintengine_raster.cpp +++ b/src/gui/painting/qpaintengine_raster.cpp @@ -2928,6 +2928,7 @@ void QRasterPaintEngine::drawGlyphsS60(const QPointF &p, const QTextItemInt &ti) if (matrix.type() == QTransform::TxScale) fe->setFontScale(matrix.m11()); ti.fontEngine->getGlyphPositions(ti.glyphs, matrix, ti.flags, glyphs, positions); + const QFixed aliasDelta = QFixed::fromReal(aliasedCoordinateDelta); for (int i=0; i<glyphs.size(); ++i) { @@ -2935,8 +2936,8 @@ void QRasterPaintEngine::drawGlyphsS60(const QPointF &p, const QTextItemInt &ti) const TUint8 *glyphBitmapBytes; TSize glyphBitmapSize; fe->getCharacterData(glyphs[i], tmetrics, glyphBitmapBytes, glyphBitmapSize); - const int x = qFloor(positions[i].x + metrics.x + aliasDelta); - const int y = qFloor(positions[i].y + metrics.y + aliasDelta); + const int x = qFloor(positions[i].x + tmetrics.HorizBearingX() + aliasDelta); + const int y = qFloor(positions[i].y - tmetrics.HorizBearingY() + aliasDelta); alphaPenBlt(glyphBitmapBytes, glyphBitmapSize.iWidth, 8, x, y, glyphBitmapSize.iWidth, glyphBitmapSize.iHeight); } |