From a4de202cbd5abdf46c48663874e34bdd028b6df5 Mon Sep 17 00:00:00 2001 From: lat9nq <22451773+lat9nq@users.noreply.github.com> Date: Sun, 7 May 2023 17:41:30 -0400 Subject: settings: Add anisotropy mode enum --- src/common/settings.h | 8 ++++++++ src/yuzu/configuration/shared_translation.cpp | 7 +++++++ 2 files changed, 15 insertions(+) diff --git a/src/common/settings.h b/src/common/settings.h index a90fc87a7..1c26081c9 100644 --- a/src/common/settings.h +++ b/src/common/settings.h @@ -116,6 +116,14 @@ enum class AstcRecompression : u32 { Bc3 = 2, }; +enum class AspectRatio : u32 { + R16_9, + R4_3, + R21_9, + R16_10, + Stretch, +}; + enum class Category : u32 { Audio, Core, diff --git a/src/yuzu/configuration/shared_translation.cpp b/src/yuzu/configuration/shared_translation.cpp index 181dd7cf0..c20a3ebd9 100644 --- a/src/yuzu/configuration/shared_translation.cpp +++ b/src/yuzu/configuration/shared_translation.cpp @@ -132,6 +132,8 @@ std::unique_ptr InitializeTranslations(QWidget* parent) { std::forward_list ComboboxEnumeration(std::type_index type, QWidget* parent) { const auto& tr = [&](const char* text) { return parent->tr(text); }; + // Intentionally skipping VSyncMode to let the UI fill that one out + if (type == typeid(Settings::AstcDecodeMode)) { return { tr("CPU"), @@ -199,6 +201,11 @@ std::forward_list ComboboxEnumeration(std::type_index type, QWidget* pa tr("FXAA"), tr("SMAA"), }; + } else if (type == typeid(Settings::AspectRatio)) { + return { + tr("Default (16:9)"), tr("Force 4:3"), tr("Force 21:9"), + tr("Force 16:10"), tr("Stretch to Window"), + }; } else if (type == typeid(Settings::AnisotropyMode)) { return { tr("Automatic"), tr("Default"), tr("2x"), tr("4x"), tr("8x"), tr("16x"), -- cgit v1.2.3