settings: Add anisotropy mode enum
This commit is contained in:
parent
cfb63c68db
commit
a4de202cbd
|
@ -116,6 +116,14 @@ enum class AstcRecompression : u32 {
|
||||||
Bc3 = 2,
|
Bc3 = 2,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
enum class AspectRatio : u32 {
|
||||||
|
R16_9,
|
||||||
|
R4_3,
|
||||||
|
R21_9,
|
||||||
|
R16_10,
|
||||||
|
Stretch,
|
||||||
|
};
|
||||||
|
|
||||||
enum class Category : u32 {
|
enum class Category : u32 {
|
||||||
Audio,
|
Audio,
|
||||||
Core,
|
Core,
|
||||||
|
|
|
@ -132,6 +132,8 @@ std::unique_ptr<TranslationMap> InitializeTranslations(QWidget* parent) {
|
||||||
std::forward_list<QString> ComboboxEnumeration(std::type_index type, QWidget* parent) {
|
std::forward_list<QString> ComboboxEnumeration(std::type_index type, QWidget* parent) {
|
||||||
const auto& tr = [&](const char* text) { return parent->tr(text); };
|
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)) {
|
if (type == typeid(Settings::AstcDecodeMode)) {
|
||||||
return {
|
return {
|
||||||
tr("CPU"),
|
tr("CPU"),
|
||||||
|
@ -199,6 +201,11 @@ std::forward_list<QString> ComboboxEnumeration(std::type_index type, QWidget* pa
|
||||||
tr("FXAA"),
|
tr("FXAA"),
|
||||||
tr("SMAA"),
|
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)) {
|
} else if (type == typeid(Settings::AnisotropyMode)) {
|
||||||
return {
|
return {
|
||||||
tr("Automatic"), tr("Default"), tr("2x"), tr("4x"), tr("8x"), tr("16x"),
|
tr("Automatic"), tr("Default"), tr("2x"), tr("4x"), tr("8x"), tr("16x"),
|
||||||
|
|
Loading…
Reference in New Issue