2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 22:25:12 +00:00

Use style::CheckScale when setting gtk scale factor

This commit is contained in:
Ilya Fedin
2021-01-25 11:46:29 +04:00
committed by John Preston
parent 037506c0b7
commit ec8ddb047d

View File

@@ -221,7 +221,7 @@ void SetScaleFactor() {
} }
LOG(("GTK scale factor: %1").arg(scaleFactor)); LOG(("GTK scale factor: %1").arg(scaleFactor));
cSetScreenScale(std::clamp(scaleFactor * 100, 100, 300)); cSetScreenScale(style::CheckScale(scaleFactor * 100));
}); });
} }