diff options
Diffstat (limited to 'src/quick/scenegraph/adaptations/software/qsgsoftwareinternalrectanglenode.cpp')
-rw-r--r-- | src/quick/scenegraph/adaptations/software/qsgsoftwareinternalrectanglenode.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/quick/scenegraph/adaptations/software/qsgsoftwareinternalrectanglenode.cpp b/src/quick/scenegraph/adaptations/software/qsgsoftwareinternalrectanglenode.cpp index f50fa00b0b..e5b4191beb 100644 --- a/src/quick/scenegraph/adaptations/software/qsgsoftwareinternalrectanglenode.cpp +++ b/src/quick/scenegraph/adaptations/software/qsgsoftwareinternalrectanglenode.cpp @@ -237,8 +237,8 @@ void QSGSoftwareInternalRectangleNode::paint(QPainter *painter) { //We can only check for a device pixel ratio change when we know what //paint device is being used. - if (!qFuzzyCompare(painter->device()->devicePixelRatioF(), m_devicePixelRatio)) { - m_devicePixelRatio = painter->device()->devicePixelRatioF(); + if (!qFuzzyCompare(painter->device()->devicePixelRatio(), m_devicePixelRatio)) { + m_devicePixelRatio = painter->device()->devicePixelRatio(); generateCornerPixmap(); } |