From aaa96cd8ddd92d4203b44ed76647ea332206e6a9 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sat, 17 Dec 2022 19:47:37 +0100 Subject: [PATCH] An automatic aspect ratio menu entry is now added even for themes that only have a single aspect ratio defined. --- es-core/src/ThemeData.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/es-core/src/ThemeData.cpp b/es-core/src/ThemeData.cpp index 3de8c4faa..e184015d4 100644 --- a/es-core/src/ThemeData.cpp +++ b/es-core/src/ThemeData.cpp @@ -1063,8 +1063,8 @@ ThemeData::ThemeCapability ThemeData::parseThemeCapabilities(const std::string& // Add the aspect ratios in the order they are defined in sSupportedAspectRatios so they // always show up in the same order in the UI Settings menu. if (!aspectRatiosTemp.empty()) { - // Add the "automatic" aspect ratio if there is more than one entry. - if (aspectRatiosTemp.size() > 1) + // Add the "automatic" aspect ratio if there is at least one entry. + if (!aspectRatiosTemp.empty()) capabilities.aspectRatios.emplace_back(sSupportedAspectRatios.front().first); for (auto& aspectRatio : sSupportedAspectRatios) { if (std::find(aspectRatiosTemp.cbegin(), aspectRatiosTemp.cend(), aspectRatio.first) !=