GameDB: Allow user to choose different mode for ForceDeinterlacing

This commit is contained in:
Stenzek 2024-10-26 15:58:25 +10:00
parent 82e9bcc55f
commit 8def5b5d0a
No known key found for this signature in database
1 changed files with 5 additions and 1 deletions

View File

@ -465,7 +465,11 @@ void GameDatabase::Entry::ApplySettings(Settings& settings, bool display_osd_mes
if (HasTrait(Trait::ForceDeinterlacing))
{
const DisplayDeinterlacingMode new_mode = display_deinterlacing_mode.value_or(DEFAULT_DEINTERLACING_MODE);
const DisplayDeinterlacingMode new_mode = display_deinterlacing_mode.value_or(
(settings.display_deinterlacing_mode != DisplayDeinterlacingMode::Disabled &&
settings.display_deinterlacing_mode != DisplayDeinterlacingMode::Progressive) ?
settings.display_deinterlacing_mode :
DEFAULT_DEINTERLACING_MODE);
if (display_osd_messages && settings.display_deinterlacing_mode != new_mode)
{
APPEND_MESSAGE_FMT(TRANSLATE_FS("GameDatabase", "Deinterlacing set to {}."),