Allow 50% interface scale from command line.

This commit is contained in:
John Preston 2022-09-01 11:44:00 +04:00
parent 7658d1da3c
commit 47709884dd
2 changed files with 4 additions and 3 deletions

View File

@ -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;
}
}

@ -1 +1 @@
Subproject commit a5766cb1f6bfcd208814b0b71322128ecb47039a
Subproject commit 746eb80300f788e1c340f8d5b363a9eac94f7499