summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qscreen.cpp
diff options
context:
space:
mode:
authorPaul Olav Tvete <paul.tvete@theqtcompany.com>2015-04-14 16:27:33 +0200
committerPaul Olav Tvete <paul.tvete@theqtcompany.com>2015-04-14 16:27:33 +0200
commit56b72d7809a6016149668b7df0dfd35022ff01c6 (patch)
tree06aaf93c55ce6f3185f70e1d5f9aa68372d2d807 /src/gui/kernel/qscreen.cpp
parent04e4feae6c2fc0074839c490c81977ade20011c9 (diff)
Per-screen scaleFactor
To enable, set QT_SCALE_FACTOR=auto Tons of bugs, since this does not port all the QT_DEVICE_PIXEL_RATIO fixes from xcb.
Diffstat (limited to 'src/gui/kernel/qscreen.cpp')
-rw-r--r--src/gui/kernel/qscreen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qscreen.cpp b/src/gui/kernel/qscreen.cpp
index 684b298631..91cef9640b 100644
--- a/src/gui/kernel/qscreen.cpp
+++ b/src/gui/kernel/qscreen.cpp
@@ -259,7 +259,7 @@ qreal QScreen::logicalDotsPerInch() const
qreal QScreen::devicePixelRatio() const
{
Q_D(const QScreen);
- return d->platformScreen->devicePixelRatio() * QHighDpiScaling::factor();
+ return d->platformScreen->devicePixelRatio() * QHighDpiScaling::factor(this);
}
/*!