mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-29 13:39:06 +00:00
Allow 50% interface scale from command line.
This commit is contained in:
parent
7658d1da3c
commit
47709884dd
@ -530,9 +530,10 @@ void Launcher::processArguments() {
|
|||||||
|
|
||||||
const auto scaleKey = parseResult.value("-scale", {});
|
const auto scaleKey = parseResult.value("-scale", {});
|
||||||
if (scaleKey.size() > 0) {
|
if (scaleKey.size() > 0) {
|
||||||
|
using namespace style;
|
||||||
const auto value = scaleKey[0].toInt();
|
const auto value = scaleKey[0].toInt();
|
||||||
gConfigScale = ((value < 75) || (value > 300))
|
gConfigScale = ((value < kScaleMin) || (value > kScaleMax))
|
||||||
? style::kScaleAuto
|
? kScaleAuto
|
||||||
: value;
|
: value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit a5766cb1f6bfcd208814b0b71322128ecb47039a
|
Subproject commit 746eb80300f788e1c340f8d5b363a9eac94f7499
|
Loading…
x
Reference in New Issue
Block a user