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

Fix auto interface scale by primary screen dpi.

This commit is contained in:
John Preston
2018-10-26 14:58:46 +04:00
parent 91a6af71a0
commit 711b8cfa36
5 changed files with 22 additions and 51 deletions

View File

@@ -90,7 +90,6 @@ DeclareSetting(bool, StartToSettings);
DeclareReadSetting(bool, ManyInstance);
DeclareSetting(QByteArray, LocalSalt);
DeclareSetting(int, RealScale);
DeclareSetting(int, ScreenScale);
DeclareSetting(int, ConfigScale);
DeclareSetting(QString, TimeFormat);
@@ -194,7 +193,7 @@ inline int cEvalScale(int scale) {
}
inline int cScale() {
return cEvalScale(cRealScale());
return cEvalScale(cConfigScale());
}
template <typename T>
@@ -214,5 +213,4 @@ inline void SetScaleChecked(int scale) {
? kInterfaceScaleAuto
: snap(scale, kInterfaceScaleMin, kInterfaceScaleMax / cIntRetinaFactor());
cSetConfigScale(checked);
cSetRealScale(checked);
}