2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Allow larger scales on high-dpi screens.

This commit is contained in:
John Preston
2023-03-15 17:17:46 +04:00
parent ba01ba4c33
commit 7264d82e8d
4 changed files with 7 additions and 8 deletions

View File

@@ -447,7 +447,7 @@ void SetupInterfaceScale(
const auto ratio = style::DevicePixelRatio();
const auto scaleMin = style::kScaleMin;
const auto scaleMax = style::kScaleMax / ratio;
const auto scaleMax = style::MaxScaleForRatio(ratio);
const auto scaleConfig = cConfigScale();
const auto step = 5;
Assert(!((scaleMax - scaleMin) % step));