From bec9ffeacdd6035860bd539042dbabe1f3b21b43 Mon Sep 17 00:00:00 2001 From: Xaver Hugl Date: Sat, 18 Nov 2023 20:28:28 +0100 Subject: [PATCH] outputconfigurationstore: match KScreen's max scale of 300% --- src/outputconfigurationstore.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/outputconfigurationstore.cpp b/src/outputconfigurationstore.cpp index 3cb1bf3e0a..fcd4ead952 100644 --- a/src/outputconfigurationstore.cpp +++ b/src/outputconfigurationstore.cpp @@ -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