diff options
Diffstat (limited to 'src/quick/scenegraph/adaptations/software/qsgsoftwareglyphnode.cpp')
-rw-r--r-- | src/quick/scenegraph/adaptations/software/qsgsoftwareglyphnode.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/quick/scenegraph/adaptations/software/qsgsoftwareglyphnode.cpp b/src/quick/scenegraph/adaptations/software/qsgsoftwareglyphnode.cpp index 481d1f0304..47f4b5c696 100644 --- a/src/quick/scenegraph/adaptations/software/qsgsoftwareglyphnode.cpp +++ b/src/quick/scenegraph/adaptations/software/qsgsoftwareglyphnode.cpp @@ -132,8 +132,8 @@ void QSGSoftwareGlyphNode::paint(QPainter *painter) QPointF pos = m_position - QPointF(0, m_glyphRun.rawFont().ascent()); qreal offset = 1.0; - if (painter->device()->devicePixelRatioF() > 0.0) - offset = 1.0 / painter->device()->devicePixelRatioF(); + if (painter->device()->devicePixelRatio() > 0.0) + offset = 1.0 / painter->device()->devicePixelRatio(); switch (m_style) { case QQuickText::Normal: break; |