mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Set QT_DPI_ADJUSTMENT_POLICY for older Qt to the new default value
This commit is contained in:
@@ -320,6 +320,10 @@ void Launcher::init() {
|
||||
}
|
||||
|
||||
void Launcher::initHighDpi() {
|
||||
#if QT_VERSION < QT_VERSION_CHECK(6, 2, 0)
|
||||
qputenv("QT_DPI_ADJUSTMENT_POLICY", "AdjustDpi");
|
||||
#endif // Qt < 6.2.0
|
||||
|
||||
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling, true);
|
||||
if (OptionFractionalScalingEnabled.value()) {
|
||||
QApplication::setHighDpiScaleFactorRoundingPolicy(
|
||||
|
Reference in New Issue
Block a user