mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Set QT_DPI_ADJUSTMENT_POLICY for older Qt to the new default value
This commit is contained in:
parent
0b100884fc
commit
13a9920c11
1 changed files with 4 additions and 0 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Reference in a new issue