Commit 20cf8b99 authored by Felipe Kinoshita's avatar Felipe Kinoshita Committed by Nate Graham

Prefer "21:9" over "64:27" aspect ratio

We're more used to the "21:9" aspect ratio; "64:27" seems strange to users.


(cherry picked from commit 2322d5de)
parent a8ed552c
......@@ -468,9 +468,10 @@ QVariantList OutputModel::resolutionsStrings(const KScreen::OutputPtr &output) c
for (const QSize &size : resolutions(output)) {
int divisor = greatestCommonDivisor(size.width(), size.height());
// Prefer "16:10" over "8:5"
if (size.height() / divisor == 5) {
if (size.height() / divisor == 5) { // Prefer "16:10" over "8:5"
divisor /= 2;
} else if (size.height() / divisor == 27) { // Prefer "21:9" over "64:27"
divisor *= 3;
}
const QString text = i18nc("Width x height (aspect ratio)",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment