diff options
| author | 2023-05-07 17:41:30 -0400 | |
|---|---|---|
| committer | 2023-07-21 10:56:07 -0400 | |
| commit | a4de202cbd5abdf46c48663874e34bdd028b6df5 (patch) | |
| tree | 13dad1fd40a80e6799fbd9dfc44a093c634ef7f0 /src | |
| parent | shared_translation: Finish using int ids (diff) | |
| download | yuzu-a4de202cbd5abdf46c48663874e34bdd028b6df5.tar.gz yuzu-a4de202cbd5abdf46c48663874e34bdd028b6df5.tar.xz yuzu-a4de202cbd5abdf46c48663874e34bdd028b6df5.zip | |
settings: Add anisotropy mode enum
Diffstat (limited to 'src')
| -rw-r--r-- | src/common/settings.h | 8 | ||||
| -rw-r--r-- | src/yuzu/configuration/shared_translation.cpp | 7 |
2 files changed, 15 insertions, 0 deletions
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 { | |||
| 116 | Bc3 = 2, | 116 | Bc3 = 2, |
| 117 | }; | 117 | }; |
| 118 | 118 | ||
| 119 | enum class AspectRatio : u32 { | ||
| 120 | R16_9, | ||
| 121 | R4_3, | ||
| 122 | R21_9, | ||
| 123 | R16_10, | ||
| 124 | Stretch, | ||
| 125 | }; | ||
| 126 | |||
| 119 | enum class Category : u32 { | 127 | enum class Category : u32 { |
| 120 | Audio, | 128 | Audio, |
| 121 | Core, | 129 | 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<TranslationMap> InitializeTranslations(QWidget* parent) { | |||
| 132 | std::forward_list<QString> ComboboxEnumeration(std::type_index type, QWidget* parent) { | 132 | std::forward_list<QString> ComboboxEnumeration(std::type_index type, QWidget* parent) { |
| 133 | const auto& tr = [&](const char* text) { return parent->tr(text); }; | 133 | const auto& tr = [&](const char* text) { return parent->tr(text); }; |
| 134 | 134 | ||
| 135 | // Intentionally skipping VSyncMode to let the UI fill that one out | ||
| 136 | |||
| 135 | if (type == typeid(Settings::AstcDecodeMode)) { | 137 | if (type == typeid(Settings::AstcDecodeMode)) { |
| 136 | return { | 138 | return { |
| 137 | tr("CPU"), | 139 | tr("CPU"), |
| @@ -199,6 +201,11 @@ std::forward_list<QString> ComboboxEnumeration(std::type_index type, QWidget* pa | |||
| 199 | tr("FXAA"), | 201 | tr("FXAA"), |
| 200 | tr("SMAA"), | 202 | tr("SMAA"), |
| 201 | }; | 203 | }; |
| 204 | } else if (type == typeid(Settings::AspectRatio)) { | ||
| 205 | return { | ||
| 206 | tr("Default (16:9)"), tr("Force 4:3"), tr("Force 21:9"), | ||
| 207 | tr("Force 16:10"), tr("Stretch to Window"), | ||
| 208 | }; | ||
| 202 | } else if (type == typeid(Settings::AnisotropyMode)) { | 209 | } else if (type == typeid(Settings::AnisotropyMode)) { |
| 203 | return { | 210 | return { |
| 204 | tr("Automatic"), tr("Default"), tr("2x"), tr("4x"), tr("8x"), tr("16x"), | 211 | tr("Automatic"), tr("Default"), tr("2x"), tr("4x"), tr("8x"), tr("16x"), |