mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-24 23:25:38 +00:00
An automatic aspect ratio menu entry is now added even for themes that only have a single aspect ratio defined.
This commit is contained in:
parent
4a5e8d674e
commit
aaa96cd8dd
|
@ -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) !=
|
||||
|
|
Loading…
Reference in a new issue