mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-03-06 14:27:44 +00:00
GameDatabase: Add DisableSpriteTextureFiltering trait
This commit is contained in:
parent
eaf574bfa6
commit
a3b1734bd1
src/core
|
@ -72,6 +72,7 @@ static constexpr const std::array<const char*, static_cast<u32>(GameDatabase::Tr
|
||||||
"DisableTrueColor",
|
"DisableTrueColor",
|
||||||
"DisableUpscaling",
|
"DisableUpscaling",
|
||||||
"DisableTextureFiltering",
|
"DisableTextureFiltering",
|
||||||
|
"DisableSpriteTextureFiltering",
|
||||||
"DisableScaledDithering",
|
"DisableScaledDithering",
|
||||||
"DisableForceNTSCTimings",
|
"DisableForceNTSCTimings",
|
||||||
"DisableWidescreen",
|
"DisableWidescreen",
|
||||||
|
@ -101,6 +102,7 @@ static constexpr const std::array<const char*, static_cast<u32>(GameDatabase::Tr
|
||||||
TRANSLATE_NOOP("GameDatabase", "Disable True Color"),
|
TRANSLATE_NOOP("GameDatabase", "Disable True Color"),
|
||||||
TRANSLATE_NOOP("GameDatabase", "Disable Upscaling"),
|
TRANSLATE_NOOP("GameDatabase", "Disable Upscaling"),
|
||||||
TRANSLATE_NOOP("GameDatabase", "Disable Texture Filtering"),
|
TRANSLATE_NOOP("GameDatabase", "Disable Texture Filtering"),
|
||||||
|
TRANSLATE_NOOP("GameDatabase", "Disable Sprite Texture Filtering"),
|
||||||
TRANSLATE_NOOP("GameDatabase", "Disable Scaled Dithering"),
|
TRANSLATE_NOOP("GameDatabase", "Disable Scaled Dithering"),
|
||||||
TRANSLATE_NOOP("GameDatabase", "Disable Force NTSC Timings"),
|
TRANSLATE_NOOP("GameDatabase", "Disable Force NTSC Timings"),
|
||||||
TRANSLATE_NOOP("GameDatabase", "Disable Widescreen"),
|
TRANSLATE_NOOP("GameDatabase", "Disable Widescreen"),
|
||||||
|
@ -561,6 +563,16 @@ void GameDatabase::Entry::ApplySettings(Settings& settings, bool display_osd_mes
|
||||||
settings.gpu_sprite_texture_filter = GPUTextureFilter::Nearest;
|
settings.gpu_sprite_texture_filter = GPUTextureFilter::Nearest;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (HasTrait(Trait::DisableSpriteTextureFiltering))
|
||||||
|
{
|
||||||
|
if (display_osd_messages && g_settings.gpu_sprite_texture_filter != GPUTextureFilter::Nearest)
|
||||||
|
{
|
||||||
|
APPEND_MESSAGE(TRANSLATE_SV("GameDatabase", "Sprite texture filtering disabled."));
|
||||||
|
}
|
||||||
|
|
||||||
|
settings.gpu_sprite_texture_filter = GPUTextureFilter::Nearest;
|
||||||
|
}
|
||||||
|
|
||||||
if (HasTrait(Trait::DisableScaledDithering))
|
if (HasTrait(Trait::DisableScaledDithering))
|
||||||
{
|
{
|
||||||
if (display_osd_messages && settings.gpu_scaled_dithering)
|
if (display_osd_messages && settings.gpu_scaled_dithering)
|
||||||
|
|
|
@ -38,6 +38,7 @@ enum class Trait : u32
|
||||||
DisableTrueColor,
|
DisableTrueColor,
|
||||||
DisableUpscaling,
|
DisableUpscaling,
|
||||||
DisableTextureFiltering,
|
DisableTextureFiltering,
|
||||||
|
DisableSpriteTextureFiltering,
|
||||||
DisableScaledDithering,
|
DisableScaledDithering,
|
||||||
DisableForceNTSCTimings,
|
DisableForceNTSCTimings,
|
||||||
DisableWidescreen,
|
DisableWidescreen,
|
||||||
|
|
Loading…
Reference in a new issue