aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/scenegraph/adaptations/software/qsgsoftwareinternalrectanglenode.cpp
diff options
context:
space:
mode:
authorMorten Johan Sørvig <morten.sorvig@qt.io>2020-08-06 21:40:01 +0200
committerMorten Johan Sørvig <morten.sorvig@qt.io>2020-09-28 11:01:43 +0000
commit9e2f4e112776149be550dbea6003a192cd931538 (patch)
tree5c9b9ba8709edb24139179c1a37784a9f693b39c /src/quick/scenegraph/adaptations/software/qsgsoftwareinternalrectanglenode.cpp
parent3eb9ee34c06d54ea21fedd3188c60e536a487b1c (diff)
Port from devicePixelRatioF() to devicePixelRatio()
This ports all of QtDeclarative. Change-Id: Ie6eb4d96b4d49fbed1e8be514d03e331549cd712 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/quick/scenegraph/adaptations/software/qsgsoftwareinternalrectanglenode.cpp')
-rw-r--r--src/quick/scenegraph/adaptations/software/qsgsoftwareinternalrectanglenode.cpp4
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();
}