settings: Add AspectRatio enum, split res scale function

This commit is contained in:
lat9nq 2023-08-15 22:41:50 -04:00
parent d5adaeafdf
commit 3e28e85468
3 changed files with 10 additions and 3 deletions

View file

@ -146,6 +146,8 @@ ENUM(AntiAliasing, None, Fxaa, Smaa, MaxEnum);
ENUM(AspectRatio, R16_9, R4_3, R21_9, R16_10, Stretch);
ENUM(ScreenshotAspectRatio, Auto, R16_9, R4_3, R21_9, R16_10);
template <typename Type>
inline std::string CanonicalizeEnum(Type id) {
const auto group = EnumMetadata<Type>::Canonicalizations();