Qt: RoundPreferFloor scaling mode for win HiDPI
This commit is contained in:
parent
e0895a8581
commit
0891466fb8
|
@ -4585,7 +4585,7 @@ static void SetHighDPIAttributes() {
|
|||
|
||||
if (max_ratio > real_ratio) {
|
||||
QApplication::setHighDpiScaleFactorRoundingPolicy(
|
||||
Qt::HighDpiScaleFactorRoundingPolicy::Round);
|
||||
Qt::HighDpiScaleFactorRoundingPolicy::RoundPreferFloor);
|
||||
} else {
|
||||
QApplication::setHighDpiScaleFactorRoundingPolicy(
|
||||
Qt::HighDpiScaleFactorRoundingPolicy::Floor);
|
||||
|
|
Loading…
Reference in a new issue