2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Avoid Qt's fractional scaling

This commit is contained in:
Ilya Fedin
2021-11-01 09:54:20 +04:00
committed by John Preston
parent bad193ec29
commit 27a9b61f72

View File

@@ -287,6 +287,8 @@ void Launcher::init() {
QApplication::setApplicationName(qsl("TelegramDesktop"));
QApplication::setAttribute(Qt::AA_DisableHighDpiScaling, true);
QApplication::setHighDpiScaleFactorRoundingPolicy(
Qt::HighDpiScaleFactorRoundingPolicy::Floor);
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
// fallback session management is useless for tdesktop since it doesn't have