summaryrefslogtreecommitdiffstats
path: root/src/gui/image/qplatformpixmap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/image/qplatformpixmap.cpp')
-rw-r--r--src/gui/image/qplatformpixmap.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/image/qplatformpixmap.cpp b/src/gui/image/qplatformpixmap.cpp
index 2209c3de4d..a2e01147c4 100644
--- a/src/gui/image/qplatformpixmap.cpp
+++ b/src/gui/image/qplatformpixmap.cpp
@@ -178,6 +178,7 @@ QBitmap QPlatformPixmap::mask() const
if (mask.isNull()) // allocation failed
return QBitmap();
+ mask.setDevicePixelRatio(devicePixelRatio());
mask.setColorCount(2);
mask.setColor(0, QColor(Qt::color0).rgba());
mask.setColor(1, QColor(Qt::color1).rgba());