Initialize m_dpiAdjustmentPolicy from correct env
Commit 4d1f13f354
accidentally changed the code to read
envScaleFactorRoundingPolicy instead of envDpiAdjustmentPolicy.
Pick-to: 6.2.1 6.2
Fixes: QTBUG-97443
Change-Id: I26f519fd8829860af26fa8439df9bbf15cd7352f
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
This commit is contained in:
parent
d0d29a944a
commit
2e73ff1079
@ -496,7 +496,7 @@ void QHighDpiScaling::initHighDpiScaling()
|
||||
|
||||
// Resolve DpiAdjustmentPolicy to m_dpiAdjustmentPolicy
|
||||
if (envDpiAdjustmentPolicy.has_value()) {
|
||||
QByteArray policyText = envScaleFactorRoundingPolicy.value();
|
||||
QByteArray policyText = envDpiAdjustmentPolicy.value();
|
||||
auto policyEnumValue = lookupDpiAdjustmentPolicy(policyText);
|
||||
if (policyEnumValue != DpiAdjustmentPolicy::Unset) {
|
||||
QHighDpiScaling::m_dpiAdjustmentPolicy = policyEnumValue;
|
||||
|
Loading…
Reference in New Issue
Block a user