outputconfigurationstore: match KScreen's max scale of 300%
This commit is contained in:
parent
6a1b1d01b8
commit
bec9ffeacd
1 changed files with 1 additions and 1 deletions
|
@ -462,7 +462,7 @@ double OutputConfigurationStore::chooseScale(Output *output, OutputMode *mode) c
|
|||
const double outputDpi = mode->size().height() / (output->physicalSize().height() / 25.4);
|
||||
const double desiredScale = outputDpi / targetDpi(output);
|
||||
// round to 25% steps
|
||||
return std::clamp(std::round(100.0 * desiredScale / 25.0) * 25.0 / 100.0, 1.0, 5.0);
|
||||
return std::clamp(std::round(100.0 * desiredScale / 25.0) * 25.0 / 100.0, 1.0, 3.0);
|
||||
}
|
||||
|
||||
double OutputConfigurationStore::targetDpi(Output *output) const
|
||||
|
|
Loading…
Reference in a new issue