Qt: RoundPreferFloor scaling mode for win HiDPI

This commit is contained in:
Stuart Kenny 2023-04-15 16:28:19 +01:00
parent e0895a8581
commit 0891466fb8

View File

@ -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);