Settings: Fix incorrect UI for xBR texture filter

This commit is contained in:
Connor McLaughlin 2020-09-13 00:52:06 +10:00
parent 455ce05bd8
commit ccaff2e7cd
4 changed files with 5 additions and 5 deletions

View File

@ -768,7 +768,7 @@ void FilteredSampleFromVRAM(uint4 texpage, float2 coords, float4 uv_limits,
}
)";
}
else if (texture_filter == GPUTextureFilter::xBRZ)
else if (texture_filter == GPUTextureFilter::xBR)
{
ss << R"(
CONSTANT int BLEND_NONE = 0;

View File

@ -452,10 +452,10 @@ const char* Settings::GetRendererDisplayName(GPURenderer renderer)
return s_gpu_renderer_display_names[static_cast<int>(renderer)];
}
static constexpr auto s_texture_filter_names = make_array("Nearest", "Bilinear", "JINC2", "xBRZ");
static constexpr auto s_texture_filter_names = make_array("Nearest", "Bilinear", "JINC2", "xBR");
static constexpr auto s_texture_filter_display_names =
make_array(TRANSLATABLE("GPUTextureFilter", "Nearest-Neighbor"), TRANSLATABLE("GPUTextureFilter", "Bilinear"),
TRANSLATABLE("GPUTextureFilter", "JINC2"), TRANSLATABLE("GPUTextureFilter", "xBRZ"));
TRANSLATABLE("GPUTextureFilter", "JINC2"), TRANSLATABLE("GPUTextureFilter", "xBR"));
std::optional<GPUTextureFilter> Settings::ParseTextureFilterName(const char* str)
{

View File

@ -71,7 +71,7 @@ enum class GPUTextureFilter : u8
Nearest,
Bilinear,
JINC2,
xBRZ,
xBR,
Count
};

View File

@ -475,7 +475,7 @@ static std::array<retro_core_option_definition, 32> s_option_definitions = {{
"Texture Filtering",
"Smooths out the blockyness of magnified textures on 3D object by using bilinear filtering. Will have a "
"greater effect on higher resolution scales. Only applies to the hardware renderers.",
{{"Nearest", "Nearest-Neighbor"}, {"Bilinear", "Bilinear"}, {"JINC2", "JINC2"}, {"xBRZ", "xBRZ"}},
{{"Nearest", "Nearest-Neighbor"}, {"Bilinear", "Bilinear"}, {"JINC2", "JINC2"}, {"xBR", "xBR"}},
"Nearest"},
{"duckstation_GPU.WidescreenHack",
"Widescreen Hack",