mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 06:05:38 +00:00
Added the number of theme transitions to a debug log message on capabilities.xml parsing.
Also fixed an issue where the reported number of aspect ratios was incorrect.
This commit is contained in:
parent
e71371f999
commit
4d19316454
|
@ -776,13 +776,18 @@ void ThemeData::populateThemeSets()
|
|||
<< " theme set \"" << *it << "\"";
|
||||
#endif
|
||||
if (!capabilities.legacyTheme) {
|
||||
int aspectRatios {0};
|
||||
if (capabilities.aspectRatios.size() > 0)
|
||||
aspectRatios = capabilities.aspectRatios.size() - 1;
|
||||
LOG(LogDebug) << "Theme set includes support for "
|
||||
<< capabilities.variants.size() << " variant"
|
||||
<< (capabilities.variants.size() != 1 ? "s" : "") << ", "
|
||||
<< capabilities.colorSchemes.size() << " color scheme"
|
||||
<< (capabilities.colorSchemes.size() != 1 ? "s" : "") << " and "
|
||||
<< capabilities.aspectRatios.size() << " aspect ratio"
|
||||
<< (capabilities.aspectRatios.size() != 1 ? "s" : "");
|
||||
<< (capabilities.colorSchemes.size() != 1 ? "s" : "") << ", "
|
||||
<< aspectRatios << " aspect ratio"
|
||||
<< (aspectRatios != 1 ? "s" : "") << " and "
|
||||
<< capabilities.transitions.size() << " transition"
|
||||
<< (capabilities.transitions.size() != 1 ? "s" : "");
|
||||
}
|
||||
ThemeSet set {*it, capabilities};
|
||||
mThemeSets[set.getName()] = set;
|
||||
|
|
Loading…
Reference in a new issue