From 47709884dd48467d42ebca868ed804558f2af526 Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 1 Sep 2022 11:44:00 +0400 Subject: [PATCH] Allow 50% interface scale from command line. --- Telegram/SourceFiles/core/launcher.cpp | 5 +++-- Telegram/lib_ui | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Telegram/SourceFiles/core/launcher.cpp b/Telegram/SourceFiles/core/launcher.cpp index bba639451..337d55955 100644 --- a/Telegram/SourceFiles/core/launcher.cpp +++ b/Telegram/SourceFiles/core/launcher.cpp @@ -530,9 +530,10 @@ void Launcher::processArguments() { const auto scaleKey = parseResult.value("-scale", {}); if (scaleKey.size() > 0) { + using namespace style; const auto value = scaleKey[0].toInt(); - gConfigScale = ((value < 75) || (value > 300)) - ? style::kScaleAuto + gConfigScale = ((value < kScaleMin) || (value > kScaleMax)) + ? kScaleAuto : value; } } diff --git a/Telegram/lib_ui b/Telegram/lib_ui index a5766cb1f..746eb8030 160000 --- a/Telegram/lib_ui +++ b/Telegram/lib_ui @@ -1 +1 @@ -Subproject commit a5766cb1f6bfcd208814b0b71322128ecb47039a +Subproject commit 746eb80300f788e1c340f8d5b363a9eac94f7499